]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
diff: drop unused color reset parameters
authorJeff King <peff@peff.net>
Thu, 14 Feb 2019 05:48:13 +0000 (00:48 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Feb 2019 23:26:14 +0000 (15:26 -0800)
commite04df61256a40e860dfcc5518fd4f0558c8c2f03
treecf1aed818c78c4076494bc0ab5ca477d3faf659d
parent784c0daed5435a7ea0630e64e424837e49e30148
diff: drop unused color reset parameters

Several of the emit_* functions take a "reset" color parameter, but
never actually look at it (instead, they call into emit_diff_symbol,
which handles the colors itself). Let's drop these unused parameters.

Note that emit_line() does still take a color/reset pair, and actually
uses it. It cannot be refactored to match these other functions because
it's the thing that emit_diff_symbol eventually calls into (i.e., it
does not by itself know which colors to use, and must be told by the
caller).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c