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
AGAniket Gupta <aniketgupta3001@gmail.com>
Date
Nov 7, 2026, 05:47 UTC
Message-ID
<20261107054701.298961-1-aniketgupta3001@gmail.com>
In-Reply-To
<xmqqfqxd9pru.fsf@gitster.g>

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.

Thanks, Aniket

Previous: Junio C HamanoNext: Patrick Steinhardt
Message 6 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.