summaryrefslogtreecommitdiffstats
path: root/git-submodule.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-05-17 16:34:02 -0700
committerJunio C Hamano <gitster@pobox.com>2013-05-17 16:34:02 -0700
commit3d1b5a1ebc2e4d9c3323a8f2b1fac732562968b5 (patch)
tree49e1d04b52edbaa0b3d2fc549ad3cdbe30f9e1ee /git-submodule.html
parentba7fe50148ec50de8394e1fe0f672c47bf6d4c17 (diff)
downloadgit-htmldocs-3d1b5a1ebc2e4d9c3323a8f2b1fac732562968b5.tar.gz
Autogenerated HTML docs for v1.8.3-rc3
Diffstat (limited to 'git-submodule.html')
-rw-r--r--git-submodule.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/git-submodule.html b/git-submodule.html
index bebf88107..045a97b2f 100644
--- a/git-submodule.html
+++ b/git-submodule.html
@@ -819,7 +819,9 @@ add
argument &lt;path&gt; is the relative location for the cloned submodule
to exist in the superproject. If &lt;path&gt; is not given, the
"humanish" part of the source repository is used ("repo" for
-"/path/to/repo.git" and "foo" for "host.xz:foo/.git").</p></div>
+"/path/to/repo.git" and "foo" for "host.xz:foo/.git").
+The &lt;path&gt; is also used as the submodule&#8217;s logical name in its
+configuration entries unless <code>--name</code> is used to specify a logical name.</p></div>
<div class="paragraph"><p>&lt;repository&gt; is the URL of the new submodule&#8217;s origin repository.
This may be either an absolute URL, or (if it begins with ./
or ../), the location relative to the superproject&#8217;s origin
@@ -871,8 +873,10 @@ init
</dt>
<dd>
<p>
- Initialize the submodules, i.e. register each submodule name
- and url found in .gitmodules into .git/config.
+ Initialize the submodules recorded in the index (which were
+ added and committed elsewhere) by copying submodule
+ names and urls from .gitmodules to .git/config.
+ Optional &lt;path&gt; arguments limit which submodules will be initialized.
It will also copy the value of <code>submodule.$name.update</code> into
.git/config.
The key used in .git/config is <code>submodule.$name.url</code>.
@@ -1205,7 +1209,7 @@ for details.</p></div>
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2013-03-25 16:35:50 PDT
+Last updated 2013-05-17 16:33:07 PDT
</div>
</div>
</body>