* [PATCH] t2202: make sure "git add" (no args) stays a no-op
@ 2013-07-20 4:35 Junio C Hamano
0 siblings, 0 replies; only message in thread
From: Junio C Hamano @ 2013-07-20 4:35 UTC (permalink / raw)
To: git
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
t/t2202-add-addremove.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/t/t2202-add-addremove.sh b/t/t2202-add-addremove.sh
index 6a81510..fc8b59e 100755
--- a/t/t2202-add-addremove.sh
+++ b/t/t2202-add-addremove.sh
@@ -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
--
1.8.3.3-1028-g038de5b
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-20 4:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-20 4:35 [PATCH] t2202: make sure "git add" (no args) stays a no-op Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).