Re: [PATCH] git-tag: support -F <file> option
- From
Junio C Hamano <junkio@cox.net>
- Date
- Dec 22, 2006, 06:47 UTC
- Message-ID
- <7vvek45svl.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.63.0612211512160.19693@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 5 quoted lines
> 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?
Show 15 quoted lines
> @@ -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???