`git submodule add` now requires a <path>
Signed-off-by: Abhijit Menon-Sen <ams@toroid.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Abhijit Menon-Sen committed
Jul 30, 2008 at 01:23 UTC
a56bf5850a07e9119cd7e53de1465af432642ef8
1 file changed
+4
-4
Documentation/user-manual.txt
+4
-4
@@ -3458,7 +3458,7 @@ $ cd super
3458
$ git init
3459
$ for i in a b c d
3460
do
3461
- git submodule add ~/git/$i
3461
+ git submodule add ~/git/$i $i
3462
done
3463
-------------------------------------------------
3464
@@ -3471,10 +3471,10 @@ $ ls -a
3471
. .. .git .gitmodules a b c d
3472
-------------------------------------------------
3473
3474
-The `git-submodule add` command does a couple of things:
3474
+The `git-submodule add <repo> <path>` command does a couple of things:
3475
3476
-- It clones the submodule under the current directory and by default checks out
3477
- the master branch.
3476
+- It clones the submodule from <repo> to the given <path> under the
3477
+ current directory and by default checks out the master branch.
3478
- It adds the submodule's clone path to the linkgit:gitmodules[5] file and
3479
adds this file to the index, ready to be committed.
3480
- It adds the submodule's current commit ID to the index, ready to be