diff options
author | c.shoemaker@cox.net <c.shoemaker@cox.net> | 2005-10-29 00:16:20 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-28 22:26:15 -0700 |
commit | 2f9d685c6188ac5537fefa1729c91f1cd3de66cd (patch) | |
tree | 829ccfc8625d725388969330981cc309f58d7366 | |
parent | 59df2a11fea918dd605bd805c233b193a134e59e (diff) | |
download | git-2f9d685c6188ac5537fefa1729c91f1cd3de66cd.tar.gz |
Add usage help for git-reset.sh
Signed-off-by: Chris Shoemaker <c.shoemaker at cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-x | git-reset.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/git-reset.sh b/git-reset.sh index f9995cadf5..2086d26d34 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] [<commit-ish>]' +} + 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 |