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

Re: [PATCH] No diff -b/-w output for all-whitespace changes

From
Greg Bacon <gbacon@dbresearch.net>
Date
Nov 19, 2009, 22:25 UTC
Message-ID
<4B05C5CA.6090408@dbresearch.net>
In-Reply-To
<200911192314.41542.trast@student.ethz.ch>
Thomas Rast wrote
Show 7 quoted lines
> Judging from the test, this parses as
> 
>   Change git-diff's whitespace-ignoring modes to generate
>   output only if a non-(empty patch, which git-apply
>   rejects) results.
> 
> which is a bit weird, isn't it? :-)

Yes, rotten wording. I meant git-apply rejects empty patches, so let's not do that!

I chose this route rather than making git-apply more forgiving because as currently implemented, git-diff is not entirely ignoring whitespace when commanded to do so.

Greg
Previous: Thomas Rast
Message 4 of 4 in “No diff -b/-w output for all-whitespace changes”
  1. No diff -b/-w output for all-whitespace changesGreg Bacon, Nov 19, 2009
  2. Junio C HamanoNov 19, 2009
  3. Thomas RastNov 19, 2009
  4. Greg BaconNov 19, 2009

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.