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

[PATCH 0/2] rebase -i: Some nice-to-have behaviors for "reword"

From
Andrew Wong <andrew.kw.w@gmail.com>
Date
Jul 25, 2011, 03:38 UTC
Message-ID
<1311565113-5022-1-git-send-email-andrew.kw.w@gmail.com>

I've been using the "reword" command fairly often, and these are two small modifications that I've always wished I could do during a "reword". They're more of a convenience than anything. Hopefully they're not derailing the original intent of "reword" too much...

1/2: Often times when I need to reword commit, it's because the commit message was unclear. So when the "commit --amend" happens, I often found myself having to do a "show HEAD" to inspect the diff to figure out what the commit was actually doing. This patch saves me this extra step. Since this behavior isn't what users might expect when they run "rebase -v", maybe I'm better off putting this into a new flag, like "rebase --commit-verbose". Any thoughts?

2/2: Sometimes when I'm rewording a bunch of commits, I'd realize that I actually want to edit the commit that I'm current rewording, like a quick fix or something. Or I might even want to abort the entire rebase operation altogether. This patch provides a way to gracefully to abort the "reword".

Andrew Wong (2):
  rebase -i: run "commit --amend" with verbose if rebase was called
    with -v
  rebase -i: interrupt rebase when "commit --amend" failed
 git-rebase--interactive.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
-- 
1.7.2.2
Next: Andrew Wong
Message 1 of 4 in “rebase -i: Some nice-to-have behaviors for "reword"”
  1. 0/2 rebase -i: Some nice-to-have behaviors for "reword"Andrew Wong, Jul 25, 2011
  2. 1/2 rebase -i: run "commit --amend" with verbose if rebase was called with -vAndrew Wong, Jul 25, 2011
  3. 2/2 rebase -i: interrupt rebase when "commit --amend" failedAndrew Wong, Jul 25, 2011
  4. Sverre RabbelierJul 30, 2011

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.