diff options
author | freku045@student.liu.se <freku045@student.liu.se> | 2005-12-13 23:30:31 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-14 02:53:43 -0800 |
commit | 349701210dcfb87ed155258cd77644035a69f613 (patch) | |
tree | 826618ecc90437dea9d4671b3a8b555a8c81c2d1 | |
parent | Trivial usage string clean-up (diff) | |
download | tgif-349701210dcfb87ed155258cd77644035a69f613.tar.xz |
git-verify-tag: Usage string clean-up, emit usage string at incorrect invocation
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-x | git-verify-tag.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/git-verify-tag.sh b/git-verify-tag.sh index 1f44da5349..726b1e706b 100755 --- a/git-verify-tag.sh +++ b/git-verify-tag.sh @@ -1,11 +1,13 @@ #!/bin/sh -GIT_DIR=`git-rev-parse --git-dir` || exit $? +USAGE='<tag>' +SUBDIRECTORY_OK='Yes' +. git-sh-setup -die () { - echo >&2 "$*" - exit 1 -} +if [ "$#" != "1" ] +then + usage +fi type="$(git-cat-file -t "$1" 2>/dev/null)" || die "$1: no such object." |