From: Pranit Bauva Date: Thu, 5 May 2016 09:49:59 +0000 (+0530) Subject: t/t7507: improve test coverage X-Git-Tag: v2.9.0-rc0~9^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98baeb794d90e1bf0561355bc6543f9d9072a390;p=thirdparty%2Fgit.git t/t7507: improve test coverage git-commit and git-status share the same implementation thus it is necessary to ensure that changes specific to git-commit don't accidentally impact git-status. This test verifies that changes made to verbose in git-commit does not impact git-status. Signed-off-by: Pranit Bauva Signed-off-by: Junio C Hamano --- diff --git a/t/t7507-commit-verbose.sh b/t/t7507-commit-verbose.sh index 2ddf28c984..a3c8582577 100755 --- a/t/t7507-commit-verbose.sh +++ b/t/t7507-commit-verbose.sh @@ -96,4 +96,9 @@ test_expect_success 'verbose diff is stripped out with set core.commentChar' ' test_i18ngrep "Aborting commit due to empty commit message." err ' +test_expect_success 'status does not verbose without --verbose' ' + git status >actual && + ! grep "^diff --git" actual +' + test_done