]> git.ipfire.org Git - thirdparty/git.git/commitdiff
apply docs: clarify wording for --intent-to-add
authorRaymond E. Pasco <ray@ameretat.dev>
Mon, 7 Jul 2025 12:12:33 +0000 (08:12 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jul 2025 13:41:11 +0000 (06:41 -0700)
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>
Documentation/git-apply.adoc

index 952518b8af6fc0d6858ec5a01e276f8bfeac57cd..6c71ee69da977dc97c50d981dab34f0253487e3c 100644 (file)
@@ -75,13 +75,14 @@ OPTIONS
        tree. If `--check` is in effect, merely check that it would
        apply cleanly to the index entry.
 
+-N::
 --intent-to-add::
        When applying the patch only to the working tree, mark new
        files to be added to the index later (see `--intent-to-add`
-       option in linkgit:git-add[1]). This option is ignored unless
-       running in a Git repository and `--index` is not specified.
-       Note that `--index` could be implied by other options such
-       as `--cached` or `--3way`.
+       option in linkgit:git-add[1]). This option is ignored if
+       `--index` or `--cached` are used, and has no effect outside a Git
+       repository. Note that `--index` could be implied by other options
+       such as `--3way`.
 
 -3::
 --3way::