[lkml]   [2019]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Documentation: networking: device drivers: Remove stray asterisks
Jonathan Corbet <> writes:

> On Sat, 30 Nov 2019 17:20:10 -0800
> Linus Torvalds <> wrote:
>> Do you use some special options for git? Like --whitespace=nowarn or
>> --3way or something like that?
> Sigh, that has to be it. I have --ignore-whitespace in my script. When I
> take that option out, the patch in question no longer applies.

OK, so it appears that the tool is working as documented. The
"ignore" stuff kicks in to fuzz the whitespace difference for the '
' lines and '-' lines, but the option itself does not give "git
apply" enough information to decide what to do with the extra
whitespace that is CR at the end of the line on the '+' lines.

I would also say it is doubtful that it is working as expected.
Perhaps --ignore-whitespace and --whitespace=fix ought to work well
together to allow matching preimage (i.e. ' ' and '-') lines, but
still fix whitespace-broken material in postimage (i.e. ' ' and
'+') lines before replacing the preimage with the postimage, or
something along that line?

 \ /
  Last update: 2019-12-01 07:37    [W:0.256 / U:12.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site