emit_line(): don't emit an empty <SET><RESET> followed by a newline
authorJunio C Hamano <gitster@pobox.com>
Sat, 28 Nov 2009 06:04:10 +0000 (22:04 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 28 Nov 2009 06:33:53 +0000 (22:33 -0800)
commit06a4755270b86a2af20a5c1f0d785311472b5223
treeede83e7c993aa2ddb3f696e62f816d902468bcdf
parentc8e1c3d3e8ed326fe9e8ba5616db2e81a41fcc16
emit_line(): don't emit an empty <SET><RESET> followed by a newline

When emit_line() is called with an empty line (but non-zero length, as we
send line terminating LF or CRLF to the function), it used to emit
<SET><RESET> followed by a newline.  Stop the wastefulness.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
t/t4034-diff-words.sh