Re: Request to add option to interactive rebase to preserve latest commit date
- From
Peter Krefting <peter@softwolves.pp.se>
- Date
- May 1, 2019, 08:52 UTC
- Message-ID
- <alpine.DEB.2.20.1905010900260.23829@perkele.intern.softwolves.pp.se>
- In-Reply-To
- <xmqq4l6kvnuu.fsf@gitster-ct.c.googlers.com>
Junio C Hamano:
Show 8 quoted lines
>> Using interactive rebase has one flaw IMHO and that is the way it >> handles dating its commit. Can you add an option to interactive rebase >> that would make it use the date from the commit that is most recent >> and not the date from the commit that is the oldest? > > I am not sure what you mean by this. If you interactively rebase > the topmost two commits (assuming that since three commits ago, you > have a linear history):
I sort of assume that this is when merging several fixup! or squash! commits. I often end up adding lines the code to date these with the current date, but the date of the last fixup'ed or squash'ed commit would probably be better.
-- \\// Peter - http://www.softwolves.pp.se/