3 test_description
='git ls-files --deduplicate test'
7 test_expect_success
'setup' '
11 git add a.txt b.txt delete.txt &&
15 echo delete >delete.txt &&
16 git add a.txt b.txt delete.txt &&
19 git reset --hard HEAD^ &&
21 git commit -a -m side &&
25 test_expect_success
'git ls-files --deduplicate to show unique unmerged path' '
26 test_must_fail git merge tip &&
27 git ls-files --deduplicate >actual &&
28 cat >expect <<-\EOF &&
33 test_cmp expect actual &&
37 test_expect_success
'git ls-files -d -m --deduplicate with different display options' '
38 git reset --hard side &&
39 test_must_fail git merge tip &&
41 git ls-files -d -m --deduplicate >actual &&
42 cat >expect <<-\EOF &&
46 test_cmp expect actual &&
47 git ls-files -d -m -t --deduplicate >actual &&
48 cat >expect <<-\EOF &&
55 test_cmp expect actual &&
56 git ls-files -d -m -c --deduplicate >actual &&
57 cat >expect <<-\EOF &&
62 test_cmp expect actual &&