{"thread":{"id":"14742","subject":"[PATCH] `git submodule add` now requires a <path>","startedAt":"2008-07-29T19:53:16Z","lastAt":"2008-07-29T20:58:14Z","messageCount":2,"participants":["Abhijit Menon-Sen","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"85510","messageId":"1217361196-25143-1-git-send-email-ams@toroid.org","threadId":"14742","inReplyTo":null,"subject":"[PATCH] `git submodule add` now requires a <path>","fromName":"Abhijit Menon-Sen","fromEmail":"ams@toroid.org","sentAt":"2008-07-29T19:53:16Z","receivedAt":"2008-07-29T19:53:16Z","isPatch":true,"sender":{"key":"ams@toroid.org","avatar":null},"body":"\nSigned-off-by: Abhijit Menon-Sen <ams@toroid.org>\n---\n Documentation/user-manual.txt |    8 ++++----\n 1 files changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt\nindex c5641af..00256ca 100644\n--- a/Documentation/user-manual.txt\n+++ b/Documentation/user-manual.txt\n@@ -3458,7 +3458,7 @@ $ cd super\n $ git init\n $ for i in a b c d\n do\n-\tgit submodule add ~/git/$i\n+\tgit submodule add ~/git/$i $i\n done\n -------------------------------------------------\n \n@@ -3471,10 +3471,10 @@ $ ls -a\n .  ..  .git  .gitmodules  a  b  c  d\n -------------------------------------------------\n \n-The `git-submodule add` command does a couple of things:\n+The `git-submodule add <repo> <path>` command does a couple of things:\n \n-- It clones the submodule under the current directory and by default checks out\n-  the master branch.\n+- It clones the submodule from <repo> to the given <path> under the\n+  current directory and by default checks out the master branch.\n - It adds the submodule's clone path to the linkgit:gitmodules[5] file and\n   adds this file to the index, ready to be committed.\n - It adds the submodule's current commit ID to the index, ready to be\n-- \n1.6.0.rc0.43.g2aa74\n"},{"id":"85516","messageId":"7v7ib4csrd.fsf@gitster.siamese.dyndns.org","threadId":"14742","inReplyTo":"1217361196-25143-1-git-send-email-ams@toroid.org","subject":"Re: [PATCH] `git submodule add` now requires a <path>","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-07-29T20:58:14Z","receivedAt":"2008-07-29T20:58:14Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}