From: Junio C Hamano <gitster@pobox.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org, William Morgan <wmorgan-git@masanjin.net>
Subject: Re: [PATCH] additional help when editing during interactive rebase
Date: Fri, 11 Jan 2008 00:42:36 -0800 [thread overview]
Message-ID: <7vprw83g8z.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <alpine.LSU.1.00.0801091120150.31053@racer.site> (Johannes Schindelin's message of "Wed, 9 Jan 2008 11:23:32 +0000 (GMT)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Hi,
>
> On Tue, 8 Jan 2008, Junio C Hamano wrote:
>
>> I would have removed those empty lines around the instruction if I were
>> patching this, though. Losing 5 lines out of 25-line terminal was
>> marginally Ok. Losing 9 lines 4 lines too many and is unacceptable.
>>
>> Thoughts?
>
> I wonder if it would not make even more sense to record the current HEAD
> name, and call "commit --amend" if it is the same upon "--continue".
My understanding of the original issue is that "git-rebase -i"
stops at 'edit' and gives the user a chance to muck with the
commit, saying "do whatever you want now and then record the
result with git commit --amend". The user can follow that but
then needs to say "git rebase --continue" after that. The insn
does not talk about it, so after running "git commit --amend" as
told, a clueless user is left wondering "huh, and then now
what?".
Do you mean you would instead suggest "git rebase --continue" in
the insn, and make the workflow like this:
$ git rebase -i ...
Now do whatever you want and say "rebase --continue"
$ edit foo.c
$ git add foo.c
$ git rebase --continue
and have "rebase --continue" to continue with the modified
contents recorded in the index, invoking "git commit --amend",
but doing so only if the user hasn't run "git commit" with or
without --amend yet?
It feels like a better automation than what we currently have,
but I somewhat worry how that would change the user experience
for using 'edit' to split a commit into two or more.
next prev parent reply other threads:[~2008-01-11 8:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-09 2:32 [PATCH] additional help when editing during interactive rebase William Morgan
2008-01-09 2:55 ` Junio C Hamano
2008-01-09 3:29 ` William Morgan
2008-01-09 11:23 ` Johannes Schindelin
2008-01-11 8:42 ` Junio C Hamano [this message]
2008-01-11 11:29 ` Johannes Schindelin
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=7vprw83g8z.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=wmorgan-git@masanjin.net \
/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