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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Oct 3, 2017 at 09:43 UTC
0fcf760e3cc336d28e0ab30e829ea33d37b3ae37
1 file changed
+2
-2
t/t7502-commit.sh
+2
-2
@@ -171,9 +171,9 @@ test_expect_success 'verbose' '
171
172
test_expect_success 'verbose respects diff config' '
173
174
- test_config color.diff always &&
174
+ test_config diff.noprefix true &&
175
git status -v >actual &&
176
- grep "\[1mdiff --git" actual
176
+ grep "diff --git negative negative" actual
177
'
178
179
mesg_with_comment_and_newlines='