# [PATCH] git submodule: fix usage line

2 messages from 2009-03-31 to 2009-03-31. Participants: Julien Danjou.
Thread: https://gitlist.dev/t/18662

## Julien Danjou, 2009-03-31 15:30

Subject: [PATCH] git submodule: fix usage line
Message-ID: <1238513459-21813-1-git-send-email-julien@danjou.info>
URL: https://gitlist.dev/e/1238513459-21813-1-git-send-email-julien%40danjou.info

```
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

```

## Julien Danjou, 2009-03-31 15:50

Subject: [PATCH] git submodule: fix usage line
Message-ID: <1238514612-22123-1-git-send-email-julien@danjou.info>
URL: https://gitlist.dev/e/1238514612-22123-1-git-send-email-julien%40danjou.info
In-Reply-To: <1238513459-21813-1-git-send-email-julien@danjou.info>

```
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

```
