3 test_description
='git ls-files --deduplicate test'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success
'setup' '
12 git add a.txt b.txt delete.txt &&
16 echo delete >delete.txt &&
17 git add a.txt b.txt delete.txt &&
20 git reset --hard HEAD^ &&
22 git commit -a -m side &&
26 test_expect_success
'git ls-files --deduplicate to show unique unmerged path' '
27 test_must_fail git merge tip &&
28 git ls-files --deduplicate >actual &&
29 cat >expect <<-\EOF &&
34 test_cmp expect actual &&
38 test_expect_success
'git ls-files -d -m --deduplicate with different display options' '
39 git reset --hard side &&
40 test_must_fail git merge tip &&
42 git ls-files -d -m --deduplicate >actual &&
43 cat >expect <<-\EOF &&
47 test_cmp expect actual &&
48 git ls-files -d -m -t --deduplicate >actual &&
49 cat >expect <<-\EOF &&
56 test_cmp expect actual &&
57 git ls-files -d -m -c --deduplicate >actual &&
58 cat >expect <<-\EOF &&
63 test_cmp expect actual &&