summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-12-05 22:30:10 +1100
committerJesse Duffield <jessedduffield@gmail.com>2018-12-11 09:39:54 +1100
commite0ff46fe53503d74fc63c90fc5ddc4d9468b60d5 (patch)
tree137f8360a1416b08cc6c327ba47b07a4670366d6 /test
parentcce6f405a5643ed46a6bc0b9fd7cf132c915c9f3 (diff)
more work on rebasing including visual indicators
Diffstat (limited to 'test')
-rwxr-xr-xtest/repos/merge_conflict.sh46
1 files changed, 39 insertions, 7 deletions
diff --git a/test/repos/merge_conflict.sh b/test/repos/merge_conflict.sh
index 357597719..9a8e9f442 100755
--- a/test/repos/merge_conflict.sh
+++ b/test/repos/merge_conflict.sh
@@ -24,30 +24,62 @@ git add file1
git add directory
git commit -m "first commit"
-git checkout -b develop
+git checkout -b develop
echo "once upon a time there was a dog" >> file1
add_spacing file1
echo "once upon a time there was another dog" >> file1
git add file1
-
echo "test2" > directory/file
echo "test2" > directory/file2
git add directory
-
git commit -m "first commit on develop"
-git checkout master
+git checkout master
echo "once upon a time there was a cat" >> file1
add_spacing file1
echo "once upon a time there was another cat" >> file1
git add file1
-
echo "test3" > directory/file
echo "test3" > directory/file2
git add directory
+git commit -m "first commit on master"
-git commit -m "first commit on develop"
-git merge develop # should have a merge conflict here
+git checkout develop
+echo "once upon a time there was a mouse" >> file3
+git add file3
+git commit -m "second commit on develop"
+
+
+git checkout master
+echo "once upon a time there was a horse" >> file3
+git add file3
+git commit -m "second commit on master"
+
+
+git checkout develop
+echo "once upon a time there was a mouse" >> file4
+git add file4
+git commit -m "third commit on develop"
+
+
+git checkout master
+echo "once upon a time there was a horse" >> file4
+git add file4
+git commit -m "third commit on master"
+
+
+git checkout develop
+echo "once upon a time there was a mouse" >> file5
+git add file5
+git commit -m "fourth commit on develop"
+
+
+git checkout master
+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