git-sparse-checkout.txt: update docs for deprecation of 'init'
The 'init' subcommand of sparse-checkout was deprecated in ba2f3f58ac ("git-sparse-checkout.txt: update to document init/set/reapply changes", 2021-12-14), but a couple places in the manual still assumed it was the primary way to use sparse-checkout. Correct them. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Apr 22, 2022 at 02:32 UTC
71ceb816b3d22953c63f3d71b6c8e5d016ece958
1 file changed
+8
-8
Documentation/git-sparse-checkout.txt
+8
-8
@@ -70,11 +70,11 @@ SET' below for more details). In the past, this was not the default,
70
and `--cone` needed to be specified or `core.sparseCheckoutCone` needed
71
to be enabled.
72
+
73
-When `--no-cone` is passed or `core.sparseCheckoutCone` is set to false,
74
-the input list is considered a list of patterns. This mode is harder
75
-to use and less performant, and is thus not recommended. See the
76
-"Sparse Checkout" section of linkgit:git-read-tree[1] and the "Pattern
77
-Set" sections below for more details.
73
+When `--no-cone` is passed, the input list is considered a list of
74
+patterns. This mode is harder to use and less performant, and is thus
75
+not recommended. See the "Sparse Checkout" section of
76
+linkgit:git-read-tree[1] and the "Pattern Set" sections below for more
77
+details.
78
+
79
Use the `--[no-]sparse-index` option to use a sparse index (the
80
default is to not use it). A sparse index reduces the size of the
@@ -196,9 +196,9 @@ In addition to the above two patterns, we also expect that all files in the
196
root directory are included. If a recursive pattern is added, then all
197
leading directories are added as parent patterns.
198
199
-By default, when running `git sparse-checkout init`, the root directory is
200
-added as a parent pattern. At this point, the sparse-checkout file contains
201
-the following patterns:
199
+By default, when running `git sparse-checkout set` with no directories
200
+specified, the root directory is added as a parent pattern. At this
201
+point, the sparse-checkout file contains the following patterns:
202
203
----------------
204
/*