diff.c: add emit_del_line() and emit_context_line()
commit0e383e185ae57a8ee6ba015a43749f6d34fe3c9a
authorJunio C Hamano <gitster@pobox.com>
Tue, 26 May 2015 16:56:33 +0000 (26 09:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 May 2015 05:13:02 +0000 (26 22:13 -0700)
treec12dfc2ee74ff790ec2499e9b710da56748d2cf9
parent0ad782f2406fa13f626653a001b5f01a9f3fa40f
diff.c: add emit_del_line() and emit_context_line()

Traditionally, we only had emit_add_line() helper, which knows how
to find and paint whitespace breakages on the given line, because we
only care about whitespace breakages introduced in new lines.  The
context lines and old (i.e. deleted) lines are emitted with a
simpler emit_line_0() that paints the entire line in plain or old
colors.

Identify callers of emit_line_0() that show deleted lines and
context lines, have them call new helpers, emit_del_line() and
emit_context_line(), so that we can later tweak what is done to
these two classes of lines.

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