t4015: prefer --color to -c color.diff=always
commita655a595957b873e3fa9f8569568536eb547c4c8
authorJeff King <peff@peff.net>
Tue, 3 Oct 2017 13:40:19 +0000 (3 09:40 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Oct 2017 02:25:12 +0000 (4 11:25 +0900)
tree6c3d3af1980b782adcb8ecfff83f812282f9c333
parente433749d86c55af27f762c862dbb06d1e108da13
t4015: prefer --color to -c color.diff=always

t4015 contains many color-related tests which need to
override the "is stdout a tty" check. They do so by setting
the color.diff config, but we can accomplish the same with
the --color option. Besides being shorter to type, switching
will prepare us for upcoming changes to "always" when see it
in config.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4015-diff-whitespace.sh