From: Johannes Sixt <j.sixt@viscovery.net>
To: Dmitry Potapov <dpotapov@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH 2/2] git-rebase--interactive: auto amend only edited commit
Date: Tue, 09 Sep 2008 08:42:57 +0200 [thread overview]
Message-ID: <48C61AF1.1060703@viscovery.net> (raw)
In-Reply-To: <1220906569-26878-2-git-send-email-dpotapov@gmail.com>
Dmitry Potapov schrieb:
> Another problem is that after being stopped at "edit", the user adds new
> commits. In this case, automatic amend behavior of git rebase triggered
> by some stage changes causes that not only that the log message of the
> last commit is lost but that it will contain also wrong Author and Date
> information.
>
> Therefore, this patch restrict automatic amend only to the situation
> where HEAD is the commit at which git rebase stop by "edit" command.
...
> @@ -430,6 +430,8 @@ do
> if test -f "$DOTEST"/amend
> then
> amend=$(git rev-parse --verify HEAD)
> + test "$amend" = $(cat "$DOTEST"/amend) ||
> + die "You have uncommitted changes"
Doesn't this terse message carry a bit of a "WTF?" factor? In other
situations rebase --continue goes into git-commit just fine, but it does
not under these special conditions. How about this:
"Will not auto-commit uncommitted changes after you have already committed
something. Please run 'git commit --amend' yourself."
> git reset --soft HEAD^ ||
> die "Cannot rewind the HEAD"
> fi
-- Hannes
next prev parent reply other threads:[~2008-09-09 6:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-08 20:42 [PATCH 1/2] git-rebase-interactive: do not squash commits on abort Dmitry Potapov
2008-09-08 20:42 ` [PATCH 2/2] git-rebase--interactive: auto amend only edited commit Dmitry Potapov
2008-09-09 0:33 ` Junio C Hamano
2008-09-09 7:00 ` Dmitry Potapov
2008-09-09 12:05 ` [PATCH v2] " Dmitry Potapov
2008-09-09 6:42 ` Johannes Sixt [this message]
2008-09-09 7:30 ` [PATCH 2/2] " Dmitry Potapov
2008-09-09 0:06 ` [PATCH 1/2] git-rebase-interactive: do not squash commits on abort Junio C Hamano
2008-09-09 14:17 ` Johannes Schindelin
2008-09-09 20:50 ` [PATCH v2] " Dmitry Potapov
2008-09-10 9:53 ` Johannes Schindelin
2008-09-10 22:36 ` 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=48C61AF1.1060703@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=dpotapov@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.