3 test_description='basic work tree status reporting'
7 test_expect_success setup '
9 test_commit B oneside added &&
11 test_commit C oneside created
14 test_expect_success 'A/A conflict' '
16 test_must_fail git merge C
19 test_expect_success 'Report path with conflict' '
20 git diff --cached --name-status >actual &&
21 echo "U oneside" >expect &&
22 test_cmp expect actual
25 test_expect_success 'Report new path with conflict' '
26 git diff --cached --name-status HEAD^ >actual &&
27 echo "U oneside" >expect &&
28 test_cmp expect actual
34 # (use "git add/rm <file>..." as appropriate to mark resolution)
38 no changes added to commit (use "git add" and/or "git commit -a")
41 test_expect_success 'M/D conflict does not segfault' '
46 test_commit initial foo "" &&
47 test_commit modify foo foo &&
48 git checkout -b side HEAD^ &&
50 git commit -m delete &&
51 test_must_fail git merge master &&
52 test_must_fail git commit --dry-run >../actual &&
53 test_cmp ../expect ../actual &&
54 git status >../actual &&
55 test_cmp ../expect ../actual