Skip to content

Commit 2b49d97

Browse files
jupedgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a4c969a commit 2b49d97

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Documentation/git-apply.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ OPTIONS
7575
tree. If `--check` is in effect, merely check that it would
7676
apply cleanly to the index entry.
7777

78+
-N::
7879
--intent-to-add::
7980
When applying the patch only to the working tree, mark new
8081
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`.
8586

8687
-3::
8788
--3way::

0 commit comments

Comments
 (0)