apply docs: clarify wording for --intent-to-add

Avoid using a double negative, and keep in mind that --index and --cached are distinct modes of operation. Signed-off-by: Raymond E. Pasco <ray@ameretat.dev> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Raymond E. Pasco committed Jul 7, 2025 at 08:12 UTC 2b49d97fcb8fb2f39ded5b00f0f1a8824267c89e
1 file changed +5 -4
Documentation/git-apply.adoc
+5 -4
@@ -75,13 +75,14 @@ OPTIONS
75 tree. If `--check` is in effect, merely check that it would
76 apply cleanly to the index entry.
77
78 +-N::
79 --intent-to-add::
80 When applying the patch only to the working tree, mark new
81 files to be added to the index later (see `--intent-to-add`
81 - option in linkgit:git-add[1]). This option is ignored unless
82 - running in a Git repository and `--index` is not specified.
83 - Note that `--index` could be implied by other options such
84 - as `--cached` or `--3way`.
82 + option in linkgit:git-add[1]). This option is ignored if
83 + `--index` or `--cached` are used, and has no effect outside a Git
84 + repository. Note that `--index` could be implied by other options
85 + such as `--3way`.
86
87 -3::
88 --3way::