diff --git a/git-checkout.sh b/git-checkout.sh
index 73652fa5f367b8200a9fb05740c09cf12a72bc54..cb33fdc7e20272a77d97d1b68c31d9b93d3cf4d4 100755 (executable)
--- a/git-checkout.sh
+++ b/git-checkout.sh
#!/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=
--)
break
;;
+ -*)
+ usage
+ ;;
*)
if rev=$(git-rev-parse --verify "$arg^0" 2>/dev/null)
then