3 test_description
='git add --all'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success setup
'
18 git --literal-pathspecs add --all &&
22 git commit -m initial &&
23 git ls-files >actual &&
24 test_cmp expect actual
27 test_expect_success
'git add --all' '
31 echo "M .gitignore" &&
32 echo "A not-ignored" &&
37 echo modification >>.gitignore &&
40 git update-index --refresh &&
41 git ls-files >actual &&
42 git diff-index --name-status --cached HEAD >>actual &&
43 test_cmp expect actual
46 test_expect_success
'Just "git add" is a no-op' '
51 git diff-index --name-status --cached HEAD >actual &&
52 test_must_be_empty actual