diff options
author | Abhijit Menon-Sen <ams@toroid.org> | 2008-07-30 01:23:16 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-29 23:18:04 -0700 |
commit | a56bf5850a07e9119cd7e53de1465af432642ef8 (patch) | |
tree | 1c9b465735f3c1e505b3e9c5ed755ba3806a888c /Documentation/user-manual.txt | |
parent | 1ce4790bf5eeceb212f003fffcb36069c0ebb45e (diff) | |
download | git-a56bf5850a07e9119cd7e53de1465af432642ef8.tar.gz |
`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>
Diffstat (limited to 'Documentation/user-manual.txt')
-rw-r--r-- | Documentation/user-manual.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt index c5641af190..00256ca57c 100644 --- a/Documentation/user-manual.txt +++ b/Documentation/user-manual.txt @@ -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 |