diff-highlight: test graphs with --color
commitfbcf99e4acd666e1c4ef4304b53d96caaf0ae3f8
authorJeff King <peff@peff.net>
Wed, 21 Mar 2018 05:49:57 +0000 (21 01:49 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Mar 2018 17:24:19 +0000 (21 10:24 -0700)
tree0a38bdb384200728843df3b6f498d3f701fd7000
parent7ce2f4ca0e35a987fb29d11ae06438a93fd48873
diff-highlight: test graphs with --color

Our tests send git's output directly to files or pipes, so
there will never be any color. Let's do at least one --color
test to make sure that we can handle this case (which we
currently can, but will be an easy thing to mess up when we
touch the graph code in a future patch).

We'll just cover the --graph case, since this is much more
complex than the earlier cases (i.e., if it manages to
highlight, then the non-graph case definitely would).

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