summaryrefslogtreecommitdiffstats
path: root/t/t2202-add-addremove.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-07-20 05:57:01 +0200
committerJunio C Hamano <gitster@pobox.com>2013-07-20 06:32:33 +0200
commit76b623584cee2421b84e12050b7ee53b0c08ee89 (patch)
treea253ee7d9b9e979fb4c8bc1f5dd8229715324b14 /t/t2202-add-addremove.sh
parentStart preparing for 1.8.3.4 (diff)
downloadgit-76b623584cee2421b84e12050b7ee53b0c08ee89.tar.xz
git-76b623584cee2421b84e12050b7ee53b0c08ee89.zip
t2202: make sure "git add" (no args) stays a no-op
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-xt/t2202-add-addremove.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t2202-add-addremove.sh b/t/t2202-add-addremove.sh
index 6a8151064c..fc8b59e7f7 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