From: しらいしななこ <nanako3@bluebottle.com>
To: git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>
Subject: [BUG?] "git rebase --interactive" forces me to edit message.
Date: Thu, 05 Jun 2008 12:58:20 +0900 [thread overview]
Message-ID: <200806050358.m553wgK9013230@mi0.bluebottle.com> (raw)
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 reply other threads:[~2008-06-05 4:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-05 3:58 しらいしななこ [this message]
2008-06-05 4:14 ` [BUG?] "git rebase --interactive" forces me to edit message Junio C Hamano
2008-06-05 4:40 ` Johannes Schindelin
2008-06-05 4:38 ` Johannes Schindelin
2008-06-06 21:46 ` しらいしななこ
2008-06-06 23:21 ` Junio C Hamano
[not found] ` <200806062147.m56LlCOe030269@mi0.bluebottle.com>
2008-06-07 4:57 ` Johannes Schindelin
2008-06-07 6:53 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200806050358.m553wgK9013230@mi0.bluebottle.com \
--to=nanako3@bluebottle.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox