diff.c: emit_diff_symbol learns DIFF_SYMBOL_FILEPAIR_{PLUS, MINUS}
commit3ee8b7bfe403f8c0c566a6963f7377a0ae98011e
authorStefan Beller <sbeller@google.com>
Fri, 30 Jun 2017 00:06:56 +0000 (29 17:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Jun 2017 20:13:01 +0000 (30 13:13 -0700)
tree1ffd6f59f87dcbd30c54b62ec934f4422d0849e2
parentf2bb1218f1e559131887b5c981bc8d962b00d85a
diff.c: emit_diff_symbol learns DIFF_SYMBOL_FILEPAIR_{PLUS, MINUS}

We have to use fprintf instead of emit_line, because we want to emit the
tab after the color. This is important for ancient versions of gnu patch
AFAICT, although we probably do not want to feed colored output to the
patch utility, such that it would not matter if the trailing tab is
colored. Keep the corner case as-is though.

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