Signed-off-by: Chris Shoemaker <c.shoemaker@cox.net> --- git-checkout.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) 2fcbb6e58c0902e19373305b7ea77234f5d3ffba diff --git a/git-checkout.sh b/git-checkout.sh --- 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Sun Oct 30 08:47:25 2005
This archive was generated by hypermail 2.1.8 : 2005-10-30 08:47:30 EST