summaryrefslogtreecommitdiffstats
path: root/git-sparse-checkout.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-02-14 15:35:16 -0800
committerJunio C Hamano <gitster@pobox.com>2020-02-14 15:35:16 -0800
commitfc6646b8789d26d106b8074443f0d4bf0d45ec95 (patch)
tree6720c95d34e1a9b332a0088e3f78bcfa6660668b /git-sparse-checkout.html
parentb7e497f81b86f5ab135de8db416ff0b2d7796546 (diff)
downloadgit-htmldocs-fc6646b8789d26d106b8074443f0d4bf0d45ec95.tar.gz
Autogenerated HTML docs for v2.25.0-389-gbfdd6
Diffstat (limited to 'git-sparse-checkout.html')
-rw-r--r--git-sparse-checkout.html21
1 files changed, 15 insertions, 6 deletions
diff --git a/git-sparse-checkout.html b/git-sparse-checkout.html
index e0f9aebd4..2b74d97ff 100644
--- a/git-sparse-checkout.html
+++ b/git-sparse-checkout.html
@@ -807,6 +807,13 @@ patterns (see <em>CONE PATTERN SET</em> below).</p></div>
</p>
<div class="paragraph"><p>When the <code>--stdin</code> option is provided, the patterns are read from
standard in as a newline-delimited list instead of from the arguments.</p></div>
+<div class="paragraph"><p>When <code>core.sparseCheckoutCone</code> is enabled, the input list is considered a
+list of directories instead of sparse-checkout patterns. The command writes
+patterns to the sparse-checkout file to include all files contained in those
+directories (recursively) as well as files that are siblings of ancestor
+directories. The input format matches the output of <code>git ls-tree --name-only</code>.
+This includes interpreting pathnames that begin with a double quote (") as
+C-style quoted strings.</p></div>
</dd>
<dt class="hdlist1">
<em>disable</em>
@@ -867,7 +874,7 @@ using negative patterns. For example, to remove the file <code>unwanted</code>:<
inclusion/exclusion rules. These can result in O(N*M) pattern matches when
updating the index, where N is the number of patterns and M is the number
of paths in the index. To combat this performance issue, a more restricted
-pattern set is allowed when <code>core.spareCheckoutCone</code> is enabled.</p></div>
+pattern set is allowed when <code>core.sparseCheckoutCone</code> is enabled.</p></div>
<div class="paragraph"><p>The accepted patterns in the cone pattern set are:</p></div>
<div class="olist arabic"><ol class="arabic">
<li>
@@ -892,10 +899,12 @@ the following patterns:</p></div>
<pre><code>/*
!/*/</code></pre>
</div></div>
-<div class="paragraph"><p>This says "include everything in root, but nothing two levels below root."
-If we then add the folder <code>A/B/C</code> as a recursive pattern, the folders <code>A</code> and
-<code>A/B</code> are added as parent patterns. The resulting sparse-checkout file is
-now</p></div>
+<div class="paragraph"><p>This says "include everything in root, but nothing two levels below root."</p></div>
+<div class="paragraph"><p>When in cone mode, the <code>git sparse-checkout set</code> subcommand takes a list of
+directories instead of a list of sparse-checkout patterns. In this mode,
+the command <code>git sparse-checkout set A/B/C</code> sets the directory <code>A/B/C</code> as
+a recursive pattern, the directories <code>A</code> and <code>A/B</code> are added as parent
+patterns. The resulting sparse-checkout file is now</p></div>
<div class="listingblock">
<div class="content">
<pre><code>/*
@@ -953,7 +962,7 @@ submodule will still appear in your working directory.</p></div>
<div id="footer">
<div id="footer-text">
Last updated
- 2020-02-05 15:27:27 PST
+ 2020-02-14 15:32:19 PST
</div>
</div>
</body>