Re: [PATCH] rebase -i: use same commit's message and date with f -C
From: Junio C Hamano <hidden>
Date: 2025-09-25 17:08:56
Phillip Wood [off-list ref] writes:
Hi Mathias On 24/09/2025 16:21, Mathias Rav wrote:quoted
I have never used the "amend!" autosquash feature and I was not aware of it until I stepped through the code in sequencer.c to implement my proposed change. I think the `git commit --amend` manual explains quite nicely why you could want to keep the author of one commit and the message of another. Before discovering "f -C" to achieve the "fixdown" behavior, as Hannes describes, I used "x f" to invoke my own single-letter shell script to achieve the behavior I wanted, and I guess I am fine with going back to that for the cases where I want to preserve author dates (which, to be fair, is often not that important to me).I'd be happy to see a patch that implemented a new option for "fixup" that copied the author. As the discussion that Oswald linked to shows this is not the first time someone has wanted this functionality. The issue is that we don't want to change the existing behavior, not that we don't want to support this via a different option.
Yup, thanks for stating this more clealy than I would.