diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-03-16 12:45:38 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-03-16 12:51:48 +1100 |
commit | e583cc251984deead48c062f19c3d88d88236eda (patch) | |
tree | 1ba9dbef96e90dc561c11efb42609d392d515cf9 /test | |
parent | 0d208b7957faa098f9f462cfe076ed90e5bf05dd (diff) |
allow autostashing changes when checking out a branch
Diffstat (limited to 'test')
-rwxr-xr-x | test/repos/merge_conflict.sh | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/repos/merge_conflict.sh b/test/repos/merge_conflict.sh index 88b5bfc18..7796cf38a 100755 --- a/test/repos/merge_conflict.sh +++ b/test/repos/merge_conflict.sh @@ -133,4 +133,23 @@ echo "once upon a time there was a horse" >> file5 git add file5 git commit -m "fourth commit on master" -# git merge develop # should have a merge conflict here + +# this is for the autostash feature + +git checkout -b base_branch + +echo "original1\noriginal2\noriginal3" > file +git add file +git commit -m "file" + +git checkout -b other_branch + +git checkout base_branch + +echo "new1\noriginal2\noriginal3" > file +git add file +git commit -m "file changed" + +git checkout other_branch + +echo "new2\noriginal2\noriginal3" > file |