Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranit Bauva <pranit.bauva@gmail.com>2016-05-05 12:49:59 +0300
committerJunio C Hamano <gitster@pobox.com>2016-05-05 21:52:45 +0300
commit98baeb794d90e1bf0561355bc6543f9d9072a390 (patch)
tree79593f59de76544b71f368b117e633159c93747e /t/t7507-commit-verbose.sh
parent7d1771524c8bc39856f7b30769c2f47c6061ba2f (diff)
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 <pranit.bauva@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7507-commit-verbose.sh')
-rwxr-xr-xt/t7507-commit-verbose.sh5
1 files changed, 5 insertions, 0 deletions
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