Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 76b6235

Browse files
committed
t2202: make sure "git add" (no args) stays a no-op
Signed-off-by: Junio C Hamano <[email protected]>
1 parent f893b74 commit 76b6235

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

t/t2202-add-addremove.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,14 @@ test_expect_success 'git add --all' '
4141
test_cmp expect actual
4242
'
4343

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+
4454
test_done

0 commit comments

Comments
 (0)