From b0bafe0364860ba45b74a5aec5b920213d5caa34 Mon Sep 17 00:00:00 2001 From: Chris Shoemaker Date: Sat, 29 Oct 2005 17:46:41 -0400 Subject: [PATCH] Add usage statement to git-checkout.sh Signed-off-by: Chris Shoemaker Signed-off-by: Junio C Hamano --- git-checkout.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/git-checkout.sh b/git-checkout.sh index 73652fa5..cb33fdc7 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 -- 2.11.0