git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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/
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 7 in “Request to add option to interactive rebase to preserve latest commit date”
  1. Jeff SchwartzApr 25, 2019
  2. Junio C HamanoApr 26, 2019
  3. Peter KreftingMay 1, 2019
  4. Junio C HamanoMay 7, 2019
  5. Peter KreftingMay 7, 2019
  6. Jeff SchwartzMay 7, 2019
  7. Philip OakleyMay 10, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.