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

Re: git interactive rebase 'consume' command

From
Jeff King <peff@peff.net>
Date
Jan 21, 2013, 01:49 UTC
Message-ID
<20130121014910.GA4792@sigill.intra.peff.net>
In-Reply-To
<7v8v7nli2a.fsf@alter.siamese.dyndns.org>
On Sun, Jan 20, 2013 at 12:23:41PM -0800, Junio C Hamano wrote:
Show 5 quoted lines
> In any case, the intent of the author timestamp is to record the
> time the author _started_ working on the change and came up with an
> initial, possibly a partial, draft.  It does not record the time
> when the commit was finalized.  "git commit --amend" preserves the
> original timestamp, doesn't it?

And we have "--reset-author" if you want to do that. It seems like just doing "git commit --amend --reset-author" at the end[1] would solve the original problem. Perhaps that is something that we could better support directly from the instruction sheet.

-Peff
[1] or after an "edit" break in the instruction sheet, if it is in the
    middle of a set of commits
Previous: Junio C HamanoNext: Stephen Kelly
Message 7 of 10 in “git interactive rebase 'consume' command”
  1. Stephen KellyJan 20, 2013
  2. John KeepingJan 20, 2013
  3. Stephen KellyJan 20, 2013
  4. Junio C HamanoJan 20, 2013
  5. Stephen KellyJan 20, 2013
  6. Junio C HamanoJan 20, 2013
  7. Jeff KingJan 21, 2013
  8. Stephen KellyJan 21, 2013
  9. Michael HaggertyJan 21, 2013
  10. Stephen KellyJan 21, 2013

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.