diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-01-06 15:07:09 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-06 15:07:09 -0800 |
commit | 6879384a1f11dc1817624e0a3c680cdedc90f8dd (patch) | |
tree | 320c30b58a27c237af764aae5b0eb3d84032a485 /git-sparse-checkout.txt | |
parent | cc1d78023c85b14a3737cb756d3e57a3659f3200 (diff) | |
download | git-htmldocs-6879384a1f11dc1817624e0a3c680cdedc90f8dd.tar.gz |
Autogenerated HTML docs for v2.25.0-rc1-19-g042ed
Diffstat (limited to 'git-sparse-checkout.txt')
-rw-r--r-- | git-sparse-checkout.txt | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/git-sparse-checkout.txt b/git-sparse-checkout.txt index 9c3c66cc3..974ade223 100644 --- a/git-sparse-checkout.txt +++ b/git-sparse-checkout.txt @@ -5,7 +5,7 @@ NAME ---- git-sparse-checkout - Initialize and modify the sparse-checkout configuration, which reduces the checkout to a set of paths -given by a list of atterns. +given by a list of patterns. SYNOPSIS @@ -28,7 +28,7 @@ THE FUTURE. COMMANDS -------- 'list':: - Provide a list of the contents in the sparse-checkout file. + Describe the patterns in the sparse-checkout file. 'init':: Enable the `core.sparseCheckout` setting. If the @@ -150,11 +150,30 @@ expecting patterns of these types. Git will warn if the patterns do not match. If the patterns do match the expected format, then Git will use faster hash- based algorithms to compute inclusion in the sparse-checkout. +In the cone mode case, the `git sparse-checkout list` subcommand will list the +directories that define the recursive patterns. For the example sparse-checkout +file above, the output is as follows: + +-------------------------- +$ git sparse-checkout list +A/B/C +-------------------------- + If `core.ignoreCase=true`, then the pattern-matching algorithm will use a case-insensitive check. This corrects for case mismatched filenames in the 'git sparse-checkout set' command to reflect the expected cone in the working directory. + +SUBMODULES +---------- + +If your repository contains one or more submodules, then those submodules will +appear based on which you initialized with the `git submodule` command. If +your sparse-checkout patterns exclude an initialized submodule, then that +submodule will still appear in your working directory. + + SEE ALSO -------- |