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>
This commit is contained in:
Elijah Newren 2022-04-22 02:32:21 +00:00 committed by Junio C Hamano
parent f69dfef355
commit 71ceb816b3

View File

@ -70,11 +70,11 @@ SET' below for more details). In the past, this was not the default,
and `--cone` needed to be specified or `core.sparseCheckoutCone` needed and `--cone` needed to be specified or `core.sparseCheckoutCone` needed
to be enabled. to be enabled.
+ +
When `--no-cone` is passed or `core.sparseCheckoutCone` is set to false, When `--no-cone` is passed, the input list is considered a list of
the input list is considered a list of patterns. This mode is harder patterns. This mode is harder to use and less performant, and is thus
to use and less performant, and is thus not recommended. See the not recommended. See the "Sparse Checkout" section of
"Sparse Checkout" section of linkgit:git-read-tree[1] and the "Pattern linkgit:git-read-tree[1] and the "Pattern Set" sections below for more
Set" sections below for more details. details.
+ +
Use the `--[no-]sparse-index` option to use a sparse index (the Use the `--[no-]sparse-index` option to use a sparse index (the
default is to not use it). A sparse index reduces the size of the 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
root directory are included. If a recursive pattern is added, then all root directory are included. If a recursive pattern is added, then all
leading directories are added as parent patterns. leading directories are added as parent patterns.
By default, when running `git sparse-checkout init`, the root directory is By default, when running `git sparse-checkout set` with no directories
added as a parent pattern. At this point, the sparse-checkout file contains specified, the root directory is added as a parent pattern. At this
the following patterns: point, the sparse-checkout file contains the following patterns:
---------------- ----------------
/* /*