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, 04:07 UTC
Message-ID
<20261107040715.436-1-aniketgupta3001@gmail.com>
In-Reply-To
<xmqqwlqpg0js.fsf@gitster.g>
Hi Junio,

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. My symlink example was hand made and not valid. I only wanted to demonstrate that the type check no longer fires. This is a minor point.

I also tried undoing the series with -R (the edit first, then the rename) for a plain and an exe file. It works the same with and without the change.

Thanks, Aniket

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 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.