Skip to content

Commit

Permalink
Merge branch 'jc/simple-add-must-be-a-no-op'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Junio C Hamano committed Jul 22, 2013
2 parents 805c5a5 + 76b6235 commit 06cbc13
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 06cbc13

Please sign in to comment.