From: Pranit Bauva Date: Thu, 05 May 2016 09:49:59 GMT Subject: [PATCH v16 4/7] t/t7507: improve test coverage Message-ID: <1462441802-4768-5-git-send-email-pranit.bauva@gmail.com> In-Reply-To: <1462441802-4768-1-git-send-email-pranit.bauva@gmail.com> 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 --- t/t7507-commit-verbose.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/t7507-commit-verbose.sh b/t/t7507-commit-verbose.sh index 2ddf28c..a3c8582 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 -- 2.8.1