summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-03-05 10:43:01 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-03-05 10:43:02 -0800
commitf4d7dfce4db1666173d0ef0bd058510f558aebc0 (patch)
treecaab22c7f8fc55560c1cb5076a68add051fea38c /Documentation
parentThe eighth batch for 2.26 (diff)
parentsparse-checkout: allow one-character directories in cone mode (diff)
downloadtgif-f4d7dfce4db1666173d0ef0bd058510f558aebc0.tar.xz
Merge branch 'ds/sparse-add'
"git sparse-checkout" learned a new "add" subcommand. * ds/sparse-add: sparse-checkout: allow one-character directories in cone mode sparse-checkout: work with Windows paths sparse-checkout: create 'add' subcommand sparse-checkout: extract pattern update from 'set' subcommand sparse-checkout: extract add_patterns_from_input()
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-sparse-checkout.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/git-sparse-checkout.txt b/Documentation/git-sparse-checkout.txt
index a24d90529b..c0342e5393 100644
--- a/Documentation/git-sparse-checkout.txt
+++ b/Documentation/git-sparse-checkout.txt
@@ -63,6 +63,13 @@ directories. The input format matches the output of `git ls-tree --name-only`.
This includes interpreting pathnames that begin with a double quote (") as
C-style quoted strings.
+'add'::
+ Update the sparse-checkout file to include additional patterns.
+ By default, these patterns are read from the command-line arguments,
+ but they can be read from stdin using the `--stdin` option. When
+ `core.sparseCheckoutCone` is enabled, the given patterns are interpreted
+ as directory names as in the 'set' subcommand.
+
'disable'::
Disable the `core.sparseCheckout` config setting, and restore the
working directory to include all files. Leaves the sparse-checkout