projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2d07d2
)
Add usage statement to git-checkout.sh
author
Chris Shoemaker
<c.shoemaker@cox.net>
Sat, 29 Oct 2005 21:46:41 +0000
(17:46 -0400)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 31 Oct 2005 01:28:00 +0000
(17:28 -0800)
Signed-off-by: Chris Shoemaker <c.shoemaker@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-checkout.sh
patch
|
blob
|
history
diff --git
a/git-checkout.sh
b/git-checkout.sh
index 73652fa5f367b8200a9fb05740c09cf12a72bc54..cb33fdc7e20272a77d97d1b68c31d9b93d3cf4d4 100755
(executable)
--- a/
git-checkout.sh
+++ b/
git-checkout.sh
@@
-1,6
+1,10
@@
#!/bin/sh
. git-sh-setup || die "Not a git archive"
+usage () {
+ die "usage: git checkout [-f] [-b <new_branch>] [<branch>] [<paths>...]"
+}
+
old=$(git-rev-parse HEAD)
new=
force=
@@
-26,6
+30,9
@@
while [ "$#" != "0" ]; do
--)
break
;;
+ -*)
+ usage
+ ;;
*)
if rev=$(git-rev-parse --verify "$arg^0" 2>/dev/null)
then