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

Re: [PATCH] Teach 'rebase -i' the command "amend"

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Oct 6, 2009, 05:53 UTC
Message-ID
<4ACADB73.1080504@viscovery.net>
In-Reply-To
<alpine.DEB.1.00.0910052318230.4985@pacific.mpi-cbg.de>
Johannes Schindelin schrieb:
Show 5 quoted lines
> Are you serious?  "rebase -i" was _always_ about showing an edit script, 
> i.e. to tell Git _what_ you want to do with _which_ commits, identified by 
> short commit names.
> 
> The oneline was _always_ meant as a pure convenience for the user.

Good that you mention it: The one-liner is really convenient. I tend to replace it by reminders like "====== fix unused var", "===== edit msg", etc. (after marking the commit "edit") and I'm glad that rebase-i later prints the one-liner from the insn file rather than the original subject line before it stops.

(I do it this way because on Windows I can't afford to call rebase-i on a long patch series for every single task. Rather, I plan the tasks while the insn editor is open, and this way I keep reminders about what the plan was.)

No, I definitely don't want the one-liners to end up in the commit message. ;-)

-- Hannes
Previous: Johannes Schindelin
Message 13 of 13 in “Teach 'rebase -i' the command "amend"”
  1. Teach 'rebase -i' the command "amend"Björn Gustavsson, Oct 4, 2009
  2. Johannes SchindelinOct 4, 2009
  3. Björn GustavssonOct 5, 2009
  4. Junio C HamanoOct 5, 2009
  5. Johannes SchindelinOct 5, 2009
  6. Sverre RabbelierOct 5, 2009
  7. Björn GustavssonOct 5, 2009
  8. Anders MelchiorsenOct 5, 2009
  9. Johannes SchindelinOct 5, 2009
  10. Junio C HamanoOct 5, 2009
  11. Sverre RabbelierOct 5, 2009
  12. Johannes SchindelinOct 5, 2009
  13. Johannes SixtOct 6, 2009

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.