]> git.ipfire.org Git - thirdparty/git.git/commitdiff
`git submodule add` now requires a <path>
authorAbhijit Menon-Sen <ams@toroid.org>
Tue, 29 Jul 2008 19:53:16 +0000 (01:23 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Jul 2008 06:18:04 +0000 (23:18 -0700)
Signed-off-by: Abhijit Menon-Sen <ams@toroid.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/user-manual.txt

index c5641af19059f5531e43bd4d4ff495548030fe98..00256ca57cc7453ef4a0dce90169078ee96e95e3 100644 (file)
@@ -3458,7 +3458,7 @@ $ cd super
 $ git init
 $ for i in a b c d
 do
-       git submodule add ~/git/$i
+       git submodule add ~/git/$i $i
 done
 -------------------------------------------------
 
@@ -3471,10 +3471,10 @@ $ ls -a
 .  ..  .git  .gitmodules  a  b  c  d
 -------------------------------------------------
 
-The `git-submodule add` command does a couple of things:
+The `git-submodule add <repo> <path>` command does a couple of things:
 
-- It clones the submodule under the current directory and by default checks out
-  the master branch.
+- It clones the submodule from <repo> to the given <path> under the
+  current directory and by default checks out the master branch.
 - It adds the submodule's clone path to the linkgit:gitmodules[5] file and
   adds this file to the index, ready to be committed.
 - It adds the submodule's current commit ID to the index, ready to be