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.