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

Re: [BUG] git apply: pure rename followed by edit fails with core.fileMode=false

From
Patrick Steinhardt <ps@pks.im>
Date
Nov 9, 2026, 07:57 UTC
Message-ID
<avF86vESF26lpNv2@pks.im>
In-Reply-To
<20261107054701.298961-1-aniketgupta3001@gmail.com>
Hi Aniket,
On Sat, Nov 07, 2026 at 05:47:01AM +0000, Aniket Gupta wrote:
Show 6 quoted lines
> Hey Junio. Yup. Two commits. Hannes feeds the whole format-patch output
> to a single git apply and separate invocations and git am work for him.
> Though applying several patches that touch the same path in one
> invocation is something git apply does on purpose. A pure rename
> followed by an edit worked that way before 0482c32c33 and still does
> with core.fileMode=true. It only breaks with =false.

one ask from my side for mailing list etiquette: could you please keep the relevant parts of the mail that you're replying to? Otherwise it becomes very hard to follow the discussion as one has no idea what parts of the mail you reply to specifically.

Thanks!
Patrick
Previous: Aniket GuptaNext: Aniket Gupta
Message 7 of 8 in “[BUG] git apply: pure rename followed by edit fails with core.fileMode=false”
  1. Hannes Brandstätter-MüllerOct 23, 2026
  2. Aniket GuptaNov 6, 2026
  3. Junio C HamanoNov 6, 2026
  4. Aniket GuptaNov 7, 2026
  5. Junio C HamanoNov 7, 2026
  6. Aniket GuptaNov 7, 2026
  7. Patrick SteinhardtNov 9, 2026
  8. Aniket GuptaNov 9, 2026

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.