Skip to content

Commit a402723

Browse files
matheustavaresgitster
authored andcommitted
doc: sparse-checkout: mention --cone option
In af09ce2 ("sparse-checkout: init and set in cone mode", 2019-11-21), the '--cone' option was added to 'git sparse-checkout init'. Document it. Signed-off-by: Matheus Tavares <[email protected]> Acked-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d0654dc commit a402723

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/git-sparse-checkout.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ COMMANDS
4141
To avoid interfering with other worktrees, it first enables the
4242
`extensions.worktreeConfig` setting and makes sure to set the
4343
`core.sparseCheckout` setting in the worktree-specific config file.
44+
+
45+
When `--cone` is provided, the `core.sparseCheckoutCone` setting is
46+
also set, allowing for better performance with a limited set of
47+
patterns (see 'CONE PATTERN SET' below).
4448

4549
'set'::
4650
Write a set of patterns to the sparse-checkout file, as given as

0 commit comments

Comments
 (0)