summaryrefslogtreecommitdiffstats
path: root/git-submodule.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-11-21 17:37:37 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-11-21 17:37:37 +0000
commit3b70d3c788363466e56886d9fc5d316659cda627 (patch)
tree93140aff56d58afe94727490c401e1cbe78f2748 /git-submodule.html
parenta5574469119a1d5e9f98cc629e1959eca9719ba9 (diff)
downloadgit-htmldocs-3b70d3c788363466e56886d9fc5d316659cda627.tar.gz
Autogenerated HTML docs for v1.6.5.3-298-g39add
Diffstat (limited to 'git-submodule.html')
-rw-r--r--git-submodule.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/git-submodule.html b/git-submodule.html
index 48af939c4..310195c27 100644
--- a/git-submodule.html
+++ b/git-submodule.html
@@ -322,7 +322,7 @@ git-submodule(1) Manual Page
<div class="sectionbody">
<div class="verseblock">
<div class="content"><em>git submodule</em> [--quiet] add [-b branch]
- [--reference &lt;repository&gt;] [--] &lt;repository&gt; &lt;path&gt;
+ [--reference &lt;repository&gt;] [--] &lt;repository&gt; [&lt;path&gt;]
<em>git submodule</em> [--quiet] status [--cached] [--recursive] [--] [&lt;path&gt;&#8230;]
<em>git submodule</em> [--quiet] init [--] [&lt;path&gt;&#8230;]
<em>git submodule</em> [--quiet] update [--init] [-N|--no-fetch] [--rebase]
@@ -381,7 +381,11 @@ add
to the changeset to be committed next to the current
project: the current project is termed the "superproject".
</p>
-<div class="para"><p>This requires two arguments: &lt;repository&gt; and &lt;path&gt;.</p></div>
+<div class="para"><p>This requires at least one argument: &lt;repository&gt;. The optional
+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>
<div class="para"><p>&lt;repository&gt; is the URL of the new submodule's origin repository.
This may be either an absolute URL, or (if it begins with ./
or ../), the location relative to the superproject's origin
@@ -657,7 +661,7 @@ for details.</p></div>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2009-11-15 09:57:21 UTC
+Last updated 2009-11-21 17:36:59 UTC
</div>
</div>
</body>