Skip to content

Commit 98baeb7

Browse files
pranitbauva1997gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7d17715 commit 98baeb7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/t7507-commit-verbose.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,9 @@ test_expect_success 'verbose diff is stripped out with set core.commentChar' '
9696
test_i18ngrep "Aborting commit due to empty commit message." err
9797
'
9898

99+
test_expect_success 'status does not verbose without --verbose' '
100+
git status >actual &&
101+
! grep "^diff --git" actual
102+
'
103+
99104
test_done

0 commit comments

Comments
 (0)