Re: [BUG] git apply: pure rename followed by edit fails with core.fileMode=false
- From
- Aniket 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