On Dez 24 2024, Patrice Dumas wrote:

> On Tue, Dec 24, 2024 at 12:29:28AM +0000, Gavin Smith wrote:
>> On Tue, Dec 24, 2024 at 12:18:05AM +0000, Gavin Smith wrote:
>> > Is there any way to keep the commit dates and dates of ChangeLog entries
>> > in order for the new commits?  In the past it has been quite confusing
>> > trying to make sense of commits when the dates are out of order and
>> > trying to understand when commits were actually made.
>> 
>> Too late - the commit dated 2024-12-23 (a660b5812) is then followed by
>> a commit dated 2024-12-04 (91e12ddfa23).
>
> Actually, I would not know how to do that.  Changing the ChangeLog is
> one thing, changing the commit date, I don't know how to do that.  I use
> git cherry-pick to get the commit, and there does not seems to be the
> possibility to do that.

cherry-pick does not have an option, but you can rebase the commits
afterwards with --reset-author-date to reset the author date.

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to