Skip to content

Commit 0fcf760

Browse files
peffgitster
authored andcommitted
t7502: use diff.noprefix for --verbose test
To check that "status -v" respects diff config, we set "color.diff" and look at the output of "status". We could equally well use any diff config. Since color output depends on a lot of other factors (like whether stdout is a tty, and how we interpret "always"), let's use a more mundane option. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 01c94e9 commit 0fcf760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t7502-commit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ test_expect_success 'verbose' '
171171

172172
test_expect_success 'verbose respects diff config' '
173173
174-
test_config color.diff always &&
174+
test_config diff.noprefix true &&
175175
git status -v >actual &&
176-
grep "\[1mdiff --git" actual
176+
grep "diff --git negative negative" actual
177177
'
178178

179179
mesg_with_comment_and_newlines='

0 commit comments

Comments
 (0)