git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git submodule: fix usage line

From
Julien Danjou <julien@danjou.info>
Date
Mar 31, 2009, 15:50 UTC
Message-ID
<1238514612-22123-1-git-send-email-julien@danjou.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
Previous: Julien Danjou
Message 2 of 2 in “git submodule: fix usage line”
  1. git submodule: fix usage lineJulien Danjou, Mar 31, 2009
  2. git submodule: fix usage lineJulien Danjou, Mar 31, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.