From: Junio C Hamano <junkio@cox.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Han-Wen Nienhuys <hanwen@xs4all.nl>, git@vger.kernel.org
Subject: Re: [PATCH] git-tag: support -F <file> option
Date: Thu, 21 Dec 2006 22:47:42 -0800 [thread overview]
Message-ID: <7vvek45svl.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.63.0612211512160.19693@wbgn013.biozentrum.uni-wuerzburg.de> (Johannes Schindelin's message of "Thu, 21 Dec 2006 15:13:02 +0100 (CET)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> This imitates the behaviour of git-commit.
>
> Noticed by Han-Wen Nienhuys.
>
> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Ok, but what the **** is "die ...; exit 2" sequence?
> @@ -45,6 +45,17 @@ do
> message_given=1
> fi
> ;;
> + -F)
> + annotate=1
> + shift
> + if test "$#" = "0"; then
> + die "error: option -F needs an argument"
> + exit 2
> + else
> + message="$(cat "$1")"
> + message_given=1
> + fi
> + ;;
I know it was copied from Han-Wen's aabd7693, but was this
somehow to catch the case where die can fail???
next prev parent reply other threads:[~2006-12-22 6:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-21 11:52 UI: git-tag should support -F as well Han-Wen Nienhuys
2006-12-21 14:13 ` [PATCH] git-tag: support -F <file> option Johannes Schindelin
2006-12-22 6:47 ` Junio C Hamano [this message]
2006-12-22 6:53 ` Shawn Pearce
2006-12-22 12:15 ` 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=7vvek45svl.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=hanwen@xs4all.nl \
/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