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

[BUG?] "git rebase --interactive" forces me to edit message.

From
しらいしななこ <nanako3@bluebottle.com>
Date
Jun 5, 2008, 03:58 UTC
Message-ID
<200806050358.m553wgK9013230@mi0.bluebottle.com>
When an interactive rebase stops because of conflicts in a commit marked with pick, the user must edit the file to resolve them, run "git add", and run "git rebase --continue".  It then opens vi and asks the user to edit the message.  If I told the command to edit, I think it is OK to start vi, but when I am just picking the commit, I should be able to use the message from the original commit without having to view nor edit nor save it first. Is this a bug?
To reproduce this, first prepare a file with five lines and create an initial commit:

% git init % cat file 1 2 3 4 5 % git add file % git commit -m 'initial' % git tag initial

Then edit the second line and replace "2" with "two", and commit. Then edit the third line and replace "3" with "three", and commit.

Then say:
% git rebase --interactive initial
and reverse the first two lines.  It stops at the first commit that changes "3" to "three".

Resolve the conflicts by editing it so that it has "1 2 three 4 5", and say: % git add file % git rebase --continue

At this point, git opens vi and asks me to edit the message.
-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/

----------------------------------------------------------------------
Finally - A spam blocker that actually works.
http://www.bluebottle.com/tag/4
Next: Junio C Hamano
Message 1 of 8 in “[BUG?] "git rebase --interactive" forces me to edit message.”
  1. しらいしななこJun 5, 2008
  2. Junio C HamanoJun 5, 2008
  3. Johannes SchindelinJun 5, 2008
  4. Johannes SchindelinJun 5, 2008
  5. しらいしななこJun 6, 2008
  6. Junio C HamanoJun 6, 2008
  7. Johannes SchindelinJun 7, 2008
  8. Junio C HamanoJun 7, 2008

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.