From d165fa14f0a111dfc85d964ecc037d0b280cd54f Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 27 Nov 2005 23:33:54 -0800 Subject: define die() for scripts that use it. As a fallout from not using git-sh-setup in scripts that can operate from a subdirectory, we lost definition of die() from them. It might make sense to do some cleanup to consolidate them back again, but this should suffice for now. Signed-off-by: Junio C Hamano --- git-branch.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'git-branch.sh') diff --git a/git-branch.sh b/git-branch.sh index b48c32988..5306b2719 100755 --- a/git-branch.sh +++ b/git-branch.sh @@ -2,6 +2,11 @@ GIT_DIR=`git-rev-parse --git-dir` || exit $? +die () { + echo >&2 "$*" + exit 1 +} + usage () { echo >&2 "usage: $(basename $0)"' [-d ] | [[-f] [start-point]] -- cgit v1.2.1