@@ -82,4 +82,35 @@ test_expect_success 'notes' '
)
'
+test_expect_failure 'checkout' '
+ test_create_repo checkout &&
+ (
+ test_commit checkout &&
+
+ test_write_lines a b c d e >content &&
+ git add content &&
+ git commit -m initial &&
+
+ git checkout -b simple master &&
+ test_write_lines a c e >content &&
+ git commit -a -m simple &&
+
+ test_write_lines b d >content &&
+ git checkout --merge master &&
+ ! grep "^|||||||" content &&
+
+ git config merge.conflictstyle merge &&
+
+ git checkout -f simple &&
+ test_write_lines b d >content &&
+ git checkout --merge --conflict=diff3 master &&
+ grep "^|||||||" content &&
+
+ git checkout -f simple &&
+ test_write_lines b d >content &&
+ git checkout --merge --conflict=merge master &&
+ ! grep "^|||||||" content
+ )
+'
+
test_done