Re: diff --check is stupid about blank lines
On 2008.08.20 11:42:34 -0700, Junio C Hamano wrote:
Show 13 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
> > 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