3 test_description
='git merge
5 Testing the resolve strategy.'
7 TEST_PASSES_SANITIZE_LEAK
=true
10 test_expect_success
'setup' '
19 git reset --hard c0 &&
24 git reset --hard c0 &&
32 git reset --hard c1 &&
33 git merge -s resolve c2 &&
34 test "$(git rev-parse c1)" != "$(git rev-parse HEAD)" &&
35 test "$(git rev-parse c1)" = "$(git rev-parse HEAD^1)" &&
36 test "$(git rev-parse c2)" = "$(git rev-parse HEAD^2)" &&
37 git diff --exit-code &&
41 test 3 = $(git ls-tree -r HEAD | wc -l) &&
42 test 3 = $(git ls-files | wc -l)
45 test_expect_success
'merge c1 to c2' "$merge_c1_to_c2_cmds"
47 test_expect_success
'merge c1 to c2, again' "$merge_c1_to_c2_cmds"
49 test_expect_success
'merge c2 to c3 (fails)' '
50 git reset --hard c2 &&
51 test_must_fail git merge -s resolve c3