git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation: networking: device drivers: Remove stray asterisks

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 1, 2019, 06:35 UTC
Message-ID
<xmqqblss1rjp.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20191130184512.23c6faaa@lwn.net>
Jonathan Corbet <corbet@lwn.net> writes:
Show 8 quoted lines
> On Sat, 30 Nov 2019 17:20:10 -0800
> Linus Torvalds <torvalds@linux-foundation.org> 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?

Previous: Jonathan CorbetNext: Linus Torvalds
Message 4 of 8 in “Fw: [PATCH] Documentation: networking: device drivers: Remove stray asterisks”
  1. Jonathan CorbetDec 1, 2019
  2. Linus TorvaldsDec 1, 2019
  3. Jonathan CorbetDec 1, 2019
  4. Junio C HamanoDec 1, 2019
  5. Linus TorvaldsDec 1, 2019
  6. Junio C HamanoDec 1, 2019
  7. Amit ChoudharyDec 2, 2019
  8. Junio C HamanoDec 2, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.