diff.c: add set_sign to emit_line_0
commit017ac45e87074a51e7bf926b8f87152a1af9a441
authorStefan Beller <sbeller@google.com>
Tue, 14 Aug 2018 01:41:19 +0000 (13 18:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Aug 2018 21:03:05 +0000 (14 14:03 -0700)
tree7c758cd579b8481b9fb12a197eb6d194c6c6d57e
parent9d1e16bf59cd35e1019e63b171ddf9209e0f53a1
diff.c: add set_sign to emit_line_0

Split the meaning of the `set` parameter that is passed to
emit_line_0()` to separate between the color of the "sign" (i.e.
the diff marker '+', '-' or ' ' that is passed in as the `first`
parameter) and the color of the rest of the line.

This changes the meaning of the `set` parameter to no longer refer
to the color of the diff marker, but instead to refer to the color
of the rest of the line. A value of `NULL` indicates that the rest
of the line wants to be colored the same as the diff marker.

Helped-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c