3 test_description='combined diff show only paths that are different to all parents'
7 # verify that diffc.expect matches output of
8 # $(git diff -c --name-only HEAD HEAD^ HEAD^2)
10 git diff -c --name-only HEAD HEAD^ HEAD^2 >diffc.actual &&
11 test_cmp diffc.expect diffc.actual
14 test_expect_success 'trivial merge - combine-diff empty' '
15 for i in $(test_seq 1 9)
20 git commit -m "init" &&
21 git checkout -b side &&
22 for i in $(test_seq 2 9)
26 git commit -a -m "side 2-9" &&
27 git checkout master &&
29 git commit -a -m "master 1" &&
36 test_expect_success 'only one trully conflicting path' '
38 for i in $(test_seq 2 9)
42 echo "4side" >>4.txt &&
43 git commit -a -m "side 2-9 +4" &&
44 git checkout master &&
45 for i in $(test_seq 1 9)
49 echo "4master" >>4.txt &&
50 git commit -a -m "master 1-9 +4" &&
51 test_must_fail git merge side &&
60 git commit -m "merge side (2)" &&
61 echo 4.txt >diffc.expect &&
65 test_expect_success 'merge introduces new file' '
67 for i in $(test_seq 5 9)
71 git commit -a -m "side 5-9" &&
72 git checkout master &&
73 for i in $(test_seq 1 3)
77 git commit -a -m "master 1-3 +4hello" &&
79 echo "Hello World" >4hello.txt &&
82 echo 4hello.txt >diffc.expect &&
86 test_expect_success 'merge removed a file' '
88 for i in $(test_seq 5 9)
92 git commit -a -m "side 5-9" &&
93 git checkout master &&
94 for i in $(test_seq 1 3)
98 git commit -a -m "master 1-3" &&
101 git commit --amend &&
102 echo 4.txt >diffc.expect &&