{"thread":{"id":"18688","subject":"[PATCH] git submodule: fix add usage line","startedAt":"2009-04-02T08:47:08Z","lastAt":"2009-04-02T08:47:08Z","messageCount":1,"participants":["Julien Danjou"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"110200","messageId":"1238662028-9557-1-git-send-email-julien@danjou.info","threadId":"18688","inReplyTo":null,"subject":"[PATCH] git submodule: fix add usage line","fromName":"Julien Danjou","fromEmail":"julien@danjou.info","sentAt":"2009-04-02T08:47:08Z","receivedAt":"2009-04-02T08:47:08Z","isPatch":true,"sender":{"key":"julien@danjou.info","avatar":"https://gravatar.com/avatar/ffa7d412ada4692aa7869967c20c24a63a8c44c7b6012792f9018a4a89b03743?d=mp&s=160"},"body":"Actually, cmd_add() parse options first and stop as soon as an unknown\nword is encoutered.\nSo we need to put the option like -b at the beginning, or the option\nparsing loop will be escaped before we got the change to have our -b\noption parsed.\n\nSigned-off-by: Julien Danjou <julien@danjou.info>\n---\n git-submodule.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-submodule.sh b/git-submodule.sh\nindex 0a27232..7c2e060 100755\n--- a/git-submodule.sh\n+++ b/git-submodule.sh\n@@ -5,7 +5,7 @@\n # Copyright (c) 2007 Lars Hjemli\n \n USAGE=\"[--quiet] [--cached] \\\n-[add <repo> [-b branch] <path>]|[status|init|update [-i|--init] [-N|--no-fetch]|summary [-n|--summary-limit <n>] [<commit>]] \\\n+[add [-b branch] <repo> <path>]|[status|init|update [-i|--init] [-N|--no-fetch]|summary [-n|--summary-limit <n>] [<commit>]] \\\n [--] [<path>...]|[foreach <command>]|[sync [--] [<path>...]]\"\n OPTIONS_SPEC=\n . git-sh-setup\n-- \n1.6.2.1\n"}]}