git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git submodule: fix usage line
@ 2009-03-31 15:30 Julien Danjou
  2009-03-31 15:50 ` Julien Danjou
  0 siblings, 1 reply; 2+ messages in thread
From: Julien Danjou @ 2009-03-31 15:30 UTC (permalink / raw)
  To: git; +Cc: Julien Danjou

Actually, you have to set the -b option after the path.

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..b0c6a6c 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 <repo> <path> [-b branch]]|[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] 2+ messages in thread

* [PATCH] git submodule: fix usage line
  2009-03-31 15:30 [PATCH] git submodule: fix usage line Julien Danjou
@ 2009-03-31 15:50 ` Julien Danjou
  0 siblings, 0 replies; 2+ messages in thread
From: Julien Danjou @ 2009-03-31 15:50 UTC (permalink / raw)
  To: git; +Cc: Julien Danjou

Actually, you have to set the -b option after the add command.

[This cancel my previous patch]

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] 2+ messages in thread

end of thread, other threads:[~2009-03-31 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-31 15:30 [PATCH] git submodule: fix usage line Julien Danjou
2009-03-31 15:50 ` 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).