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

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jul 19, 2013 at 20:57 UTC 76b623584cee2421b84e12050b7ee53b0c08ee89
1 file changed +10
t/t2202-add-addremove.sh
+10
@@ -41,4 +41,14 @@ test_expect_success 'git add --all' '
41 test_cmp expect actual
42 '
43
44 +test_expect_success 'Just "git add" is a no-op' '
45 + git reset --hard &&
46 + echo >will-remove &&
47 + >will-not-be-added &&
48 + git add &&
49 + git diff-index --name-status --cached HEAD >actual &&
50 + >expect &&
51 + test_cmp expect actual
52 +'
53 +
54 test_done