From: Junio C Hamano Date: Fri, 22 Dec 2006 06:47:42 GMT Subject: Re: [PATCH] git-tag: support -F option Message-ID: <7vvek45svl.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > This imitates the behaviour of git-commit. > > Noticed by Han-Wen Nienhuys. > > Signed-off-by: Johannes Schindelin 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???