diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-07-15 14:11:16 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 14:11:16 -0700 |
commit | ededf2bc5cb41c2aef8b3c7e89d5c1ceb068ac1a (patch) | |
tree | eb1e4f47f82c1ded7693ae344a545912f957a59f /git-submodule.html | |
parent | 8401f142a88980c91f3af6f06199e5579c9143c6 (diff) | |
download | git-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.html | 20 |
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 <branch>] [-f|--force] [--name <name>]
- [--reference <repository>] [--] <repository> [<path>]
+ [--reference <repository>] [--depth <depth>] [--] <repository> [<path>]
<em>git submodule</em> [--quiet] status [--cached] [--recursive] [--] [<path>…]
<em>git submodule</em> [--quiet] init [--] [<path>…]
<em>git submodule</em> [--quiet] deinit [-f|--force] [--] <path>…
<em>git submodule</em> [--quiet] update [--init] [--remote] [-N|--no-fetch]
- [-f|--force] [--rebase] [--reference <repository>]
+ [-f|--force] [--rebase] [--reference <repository>] [--depth <depth>]
[--merge] [--recursive] [--] [<path>…]
<em>git submodule</em> [--quiet] summary [--cached|--files] [(-n|--summary-limit) <n>]
[commit] [--] [<path>…]
@@ -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">
<path>…
</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>
|