From 2f9d685c6188ac5537fefa1729c91f1cd3de66cd Mon Sep 17 00:00:00 2001 From: "c.shoemaker@cox.net" Date: Sat, 29 Oct 2005 00:16:20 -0400 Subject: [PATCH] Add usage help for git-reset.sh Signed-off-by: Chris Shoemaker Signed-off-by: Junio C Hamano --- git-reset.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/git-reset.sh b/git-reset.sh index f9995cad..2086d26d 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 -- 2.11.0