Skip to content

Commit

Permalink
t2202: make sure "git add" (no args) stays a no-op
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jul 20, 2013
1 parent f893b74 commit 76b6235
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/t2202-add-addremove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 76b6235

Please sign in to comment.