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

Minor bug in git-apply's patch-cleaning

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Jul 7, 2007, 02:21 UTC
Message-ID
<Pine.LNX.4.64.0707062155170.6977@iabervon.org>

If you apply in reverse a patch which adds junk (e.g., terminal whitespace), it complains about the junk you're adding, even though (since it's in reverse) you're actually removing that junk.

It's arguable as to whether it should complain about junk in - lines with --reverse; it's likely that you care more about getting the patch unapplied exactly than not reintroducing removed whitespace. But complaining about junk in + lines is actually confusing.

	-Daniel
*This .sig left intentionally blank*
Next: Johannes Schindelin
Message 1 of 4 in “Minor bug in git-apply's patch-cleaning”
  1. Daniel BarkalowJul 7, 2007
  2. Fix "apply --reverse" with regard to whitespaceJohannes Schindelin, Jul 7, 2007
  3. Junio C HamanoJul 8, 2007
  4. Johannes SchindelinJul 8, 2007

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.