From: Chris Shoemaker Date: Sat, 29 Oct 2005 21:46:41 +0000 (-0400) Subject: Add usage statement to git-checkout.sh X-Git-Tag: v0.99.9a^2~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b0bafe0364860ba45b74a5aec5b920213d5caa34;p=git.git Add usage statement to git-checkout.sh Signed-off-by: Chris Shoemaker Signed-off-by: Junio C Hamano --- diff --git a/git-checkout.sh b/git-checkout.sh index 73652fa5f..cb33fdc7e 100755 --- 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 ] [] [...]" +} + 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