From: Junio C Hamano Date: Sat, 20 Jul 2013 03:57:01 +0000 (-0700) Subject: t2202: make sure "git add" (no args) stays a no-op X-Git-Tag: v1.8.4-rc0~37^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76b623584cee2421b84e12050b7ee53b0c08ee89;p=thirdparty%2Fgit.git t2202: make sure "git add" (no args) stays a no-op Signed-off-by: Junio C Hamano --- 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