Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t2202: make sure "git add" (no args) stays a no-op
author
Junio C Hamano
<gitster@pobox.com>
Sat, 20 Jul 2013 03:57:01 +0000
(20:57 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 20 Jul 2013 04:32:33 +0000
(21:32 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2202-add-addremove.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f893b74
)
diff --git
a/t/t2202-add-addremove.sh
b/t/t2202-add-addremove.sh
index 6a8151064c8256bd03a90460eb1bd6970428f2f0..fc8b59e7f7796c075b7fd03145e5f9c69625403b 100755
(executable)
--- 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