git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git submodule: fix add usage line
@ 2009-04-02  8:47 Julien Danjou
  0 siblings, 0 replies; only message in thread
From: Julien Danjou @ 2009-04-02  8:47 UTC (permalink / raw)
  To: gitster; +Cc: git, Julien Danjou

Actually, cmd_add() parse options first and stop as soon as an unknown
word is encoutered.
So we need to put the option like -b at the beginning, or the option
parsing loop will be escaped before we got the change to have our -b
option parsed.

Signed-off-by: Julien Danjou <julien@danjou.info>
---
 git-submodule.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-submodule.sh b/git-submodule.sh
index 0a27232..7c2e060 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -5,7 +5,7 @@
 # Copyright (c) 2007 Lars Hjemli
 
 USAGE="[--quiet] [--cached] \
-[add <repo> [-b branch] <path>]|[status|init|update [-i|--init] [-N|--no-fetch]|summary [-n|--summary-limit <n>] [<commit>]] \
+[add [-b branch] <repo> <path>]|[status|init|update [-i|--init] [-N|--no-fetch]|summary [-n|--summary-limit <n>] [<commit>]] \
 [--] [<path>...]|[foreach <command>]|[sync [--] [<path>...]]"
 OPTIONS_SPEC=
 . git-sh-setup
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-02  8:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-02  8:47 [PATCH] git submodule: fix add usage line Julien Danjou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).