From: Junio C Hamano <gitster@pobox.com>
To: David Kastrup <dak@gnu.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-commit.sh: Permit the --amend message to be given with -m/-c/-C/-F.
Date: Wed, 01 Aug 2007 18:03:16 -0700 [thread overview]
Message-ID: <7vd4y63fzf.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <85zm1bq8um.fsf@lola.goethe.zz> (David Kastrup's message of "Wed, 1 Aug 2007 22:33:47 +0200")
David Kastrup <dak@gnu.org> writes:
> Signed-off-by: David Kastrup <dak@gnu.org>
> ---
> git-commit.sh | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/git-commit.sh b/git-commit.sh
> index 4290ae2..d7e7028 100755
> --- a/git-commit.sh
> +++ b/git-commit.sh
> @@ -190,7 +190,6 @@ $1"
> ;;
> --a|--am|--ame|--amen|--amend)
> amend=t
> - log_given=t$log_given
> use_commit=HEAD
> shift
> ;;
> @@ -298,9 +297,9 @@ esac
>
> case "$log_given" in
> tt*)
> - die "Only one of -c/-C/-F/--amend can be used." ;;
> + die "Only one of -c/-C/-F can be used." ;;
> *tm*|*mt*)
> - die "Option -m cannot be combined with -c/-C/-F/--amend." ;;
> + die "Option -m cannot be combined with -c/-C/-F." ;;
> esac
>
> case "$#,$also,$only,$amend" in
Ok, looks obviously correct. Wasn't too painful, was it?
Thanks, will apply.
prev parent reply other threads:[~2007-08-02 1:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-01 14:25 git-commit --amend -m "..." complains?!? David Kastrup
2007-08-01 17:18 ` Junio C Hamano
2007-08-01 19:23 ` David Kastrup
2007-08-01 19:52 ` Junio C Hamano
2007-08-01 20:45 ` David Kastrup
2007-08-01 20:33 ` [PATCH] git-commit.sh: Permit the --amend message to be given with -m/-c/-C/-F David Kastrup
2007-08-02 1:03 ` Junio C Hamano [this message]
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=7vd4y63fzf.fsf@assigned-by-dhcp.cox.net \
--to=gitster@pobox.com \
--cc=dak@gnu.org \
--cc=git@vger.kernel.org \
/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