projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59df2a1
)
Add usage help for git-reset.sh
author
c.shoemaker@cox.net
<c.shoemaker@cox.net>
Sat, 29 Oct 2005 04:16:20 +0000
(
00:16
-0400)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 29 Oct 2005 05:26:15 +0000
(22:26 -0700)
Signed-off-by: Chris Shoemaker <c.shoemaker at cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-reset.sh
patch
|
blob
|
history
diff --git
a/git-reset.sh
b/git-reset.sh
index
f9995ca
..
2086d26
100755
(executable)
--- 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