summaryrefslogtreecommitdiffstats
path: root/git-submodule.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-07-15 14:11:16 -0700
committerJunio C Hamano <gitster@pobox.com>2013-07-15 14:11:16 -0700
commitededf2bc5cb41c2aef8b3c7e89d5c1ceb068ac1a (patch)
treeeb1e4f47f82c1ded7693ae344a545912f957a59f /git-submodule.html
parent8401f142a88980c91f3af6f06199e5579c9143c6 (diff)
downloadgit-htmldocs-ededf2bc5cb41c2aef8b3c7e89d5c1ceb068ac1a.tar.gz
Autogenerated HTML docs for v1.8.3.3-754-g9c3c3
Diffstat (limited to 'git-submodule.html')
-rw-r--r--git-submodule.html20
1 files changed, 16 insertions, 4 deletions
diff --git a/git-submodule.html b/git-submodule.html
index 5e7650b4f..275b534da 100644
--- a/git-submodule.html
+++ b/git-submodule.html
@@ -747,12 +747,12 @@ git-submodule(1) Manual Page
<div class="sectionbody">
<div class="verseblock">
<pre class="content"><em>git submodule</em> [--quiet] add [-b &lt;branch&gt;] [-f|--force] [--name &lt;name&gt;]
- [--reference &lt;repository&gt;] [--] &lt;repository&gt; [&lt;path&gt;]
+ [--reference &lt;repository&gt;] [--depth &lt;depth&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] deinit [-f|--force] [--] &lt;path&gt;&#8230;
<em>git submodule</em> [--quiet] update [--init] [--remote] [-N|--no-fetch]
- [-f|--force] [--rebase] [--reference &lt;repository&gt;]
+ [-f|--force] [--rebase] [--reference &lt;repository&gt;] [--depth &lt;depth&gt;]
[--merge] [--recursive] [--] [&lt;path&gt;&#8230;]
<em>git submodule</em> [--quiet] summary [--cached|--files] [(-n|--summary-limit) &lt;n&gt;]
[commit] [--] [&lt;path&gt;&#8230;]
@@ -915,7 +915,9 @@ update
This will make the submodules HEAD be detached unless <code>--rebase</code> or
<code>--merge</code> is specified or the key <code>submodule.$name.update</code> is set to
<code>rebase</code>, <code>merge</code> or <code>none</code>. <code>none</code> can be overridden by specifying
- <code>--checkout</code>.
+ <code>--checkout</code>. Setting the key <code>submodule.$name.update</code> to <code>!command</code>
+ will cause <code>command</code> to be run. <code>command</code> can be any arbitrary shell
+ command that takes a single argument, namely the sha1 to update to.
</p>
<div class="paragraph"><p>If the submodule is not yet initialized, and you just want to use the
setting as stored in .gitmodules, you can automatically initialize the
@@ -1177,6 +1179,16 @@ for <a href="git-clone.html">git-clone(1)</a>'s <code>--reference</code> and <co
</p>
</dd>
<dt class="hdlist1">
+--depth
+</dt>
+<dd>
+<p>
+ This option is valid for add and update commands. Create a <em>shallow</em>
+ clone with a history truncated to the specified number of revisions.
+ See <a href="git-clone.html">git-clone(1)</a>
+</p>
+</dd>
+<dt class="hdlist1">
&lt;path&gt;&#8230;
</dt>
<dd>
@@ -1209,7 +1221,7 @@ for details.</p></div>
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2013-07-12 15:46:35 PDT
+Last updated 2013-07-15 14:10:48 PDT
</div>
</div>
</body>