Skip to content

Commit 06cbc13

Browse files
committed
Merge branch 'jc/simple-add-must-be-a-no-op'
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
2 parents 805c5a5 + 76b6235 commit 06cbc13

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)