Merge branch 'jc/simple-add-must-be-a-no-op'
This detected a mismerge of one of "add-2.0" topics to the 'jch' and 'pu' branches. * jc/simple-add-must-be-a-no-op: t2202: make sure "git add" (no args) stays a no-op
This commit is contained in:
commit
06cbc13c6c
@ -41,4 +41,14 @@ test_expect_success 'git add --all' '
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
test_expect_success 'Just "git add" is a no-op' '
|
||||
git reset --hard &&
|
||||
echo >will-remove &&
|
||||
>will-not-be-added &&
|
||||
git add &&
|
||||
git diff-index --name-status --cached HEAD >actual &&
|
||||
>expect &&
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
test_done
|
||||
|
Loading…
Reference in New Issue
Block a user