3 test_description='git add --all'
7 test_expect_success setup '
17 git --literal-pathspecs add --all &&
21 git commit -m initial &&
22 git ls-files >actual &&
23 test_cmp expect actual
26 test_expect_success 'git add --all' '
30 echo "M .gitignore" &&
31 echo "A not-ignored" &&
36 echo modification >>.gitignore &&
39 git update-index --refresh &&
40 git ls-files >actual &&
41 git diff-index --name-status --cached HEAD >>actual &&
42 test_cmp expect actual
45 test_expect_success 'Just "git add" is a no-op' '
50 git diff-index --name-status --cached HEAD >actual &&
52 test_cmp expect actual