Web lists-archives.com

Re: Request to add option to interactive rebase to preserve latest commit date

Junio C Hamano:

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/