Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: diff --check is stupid about blank lines

From: Björn Steinbrink <hidden>
Date: 2016-06-15 22:45:11

Possibly related (same subject, not in this thread)

On 2008.08.20 11:42:34 -0700, Junio C Hamano wrote:
Junio C Hamano [off-list ref] writes:
quoted
Instead, data.trailing_blanks_start is supposed to be reset to 0 every
time we see non-blank newline, a copied context line, or new hunk.

So if this triggers with -U0 I'd understand, but otherwise I do not see
how.
Ahhh, what idiot wrote the logic for checking trailing blank lines in
checkdiff_consume().

It does not ask for any context lines.  Sheesh.

This should fix it.
Thanks, works for me :-)

Björn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help