t2202: make sure "git add" (no args) stays a no-op

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano 2013-07-19 20:57:01 -07:00
parent f893b7420c
commit 76b623584c

View file

@ -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