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

Re: [RFC] git rebase --edit

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 12, 2010, 09:29 UTC
Message-ID
<alpine.DEB.1.00.1002121026380.20986@pacific.mpi-cbg.de>
In-Reply-To
<be6fef0d1002120044w5f14d061t52863fbc8b0bd304@mail.gmail.com>
Hi,
On Fri, 12 Feb 2010, Tay Ray Chuan wrote:
Show 12 quoted lines
> [description how to amend a single commit that is not HEAD]
>
> Perhaps git-rebase --interactive could learn an option, say, --edit
> <commit>, that
> 
>   1. determines where to start the rebase (instead of saying <commit>^ above),
>   2. marks <commit> as 'e' in git-rebase-todo,
>   3. start the edit process ("You can amend the commit now...").
> 
> The user would then proceed with the usual git-rebase --continue.
> 
> Is this a workable suggestion?
Sure!

Note that the current workflow for such things is to make a temporary commit which is then handled by the new "fixup" command. But of course, this only works if your history is not messy, i.e. has too many changes in the same place (because then the fixup commit does not apply cleanly to the commit in question).

Ciao, Dscho

Previous: Tay Ray Chuan
Message 2 of 2 in “[RFC] git rebase --edit”
  1. Tay Ray ChuanFeb 12, 2010
  2. Johannes SchindelinFeb 12, 2010

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.