From: c.shoemaker@cox.net Date: Sat, 29 Oct 2005 04:16:20 +0000 (-0400) Subject: Add usage help for git-reset.sh X-Git-Tag: v0.99.9~17 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f9d685c6188ac5537fefa1729c91f1cd3de66cd;p=git.git Add usage help for git-reset.sh Signed-off-by: Chris Shoemaker Signed-off-by: Junio C Hamano --- diff --git a/git-reset.sh b/git-reset.sh index f9995cadf..2086d26d3 100755 --- a/git-reset.sh +++ b/git-reset.sh @@ -1,6 +1,10 @@ #!/bin/sh . git-sh-setup || die "Not a git archive" +usage () { + die 'Usage: git reset [--mixed | --soft | --hard] []' +} + tmp=/var/tmp/reset.$$ trap 'rm -f $tmp-*' 0 1 2 3 15 @@ -10,6 +14,8 @@ case "$1" in reset_type="$1" shift ;; +-*) + usage ;; esac rev=$(git-rev-parse --verify --default HEAD "$@") || exit