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
Junio C Hamano <gitster@pobox.com>
Date
Nov 7, 2026, 05:25 UTC
Message-ID
<xmqqfqxd9pru.fsf@gitster.g>
In-Reply-To
<20261107040715.436-1-aniketgupta3001@gmail.com>
Aniket Gupta <aniketgupta3001@gmail.com> writes:
> The series in Hannes's report is valid input which is what format-patch
> makes for a commit that renames a file followed by one which edits it.

Do you mean these are two commits, and format-patch created two messages?

If so, applying these two patches in one invocation of "git apply" is exactly what I was questioning. I would understand two separate invocations of "git apply", or "git am" fed two input files, though.

Previous: Aniket GuptaNext: Aniket Gupta
Message 5 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.