doc: apply the new placeholder rules to git-add documentation
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Feb 21, 2024 at 14:03 UTC
41bff66e354285a04205c4bd8d8e98c61ca9db07
1 file changed
+10
-10
Documentation/git-add.txt
+10
-10
@@ -63,7 +63,7 @@ OPTIONS
63
to ignore removed files; use `--no-all` option if you want
64
to add modified or new files but ignore removed ones.
65
+
66
-For more details about the <pathspec> syntax, see the 'pathspec' entry
66
+For more details about the _<pathspec>_ syntax, see the 'pathspec' entry
67
in linkgit:gitglossary[7].
68
69
-n::
@@ -119,10 +119,10 @@ apply to the index. See EDITING PATCHES below.
119
-u::
120
--update::
121
Update the index just where it already has an entry matching
122
- <pathspec>. This removes as well as modifies index entries to
122
+ _<pathspec>_. This removes as well as modifies index entries to
123
match the working tree, but adds no new files.
124
+
125
-If no <pathspec> is given when `-u` option is used, all
125
+If no _<pathspec>_ is given when `-u` option is used, all
126
tracked files in the entire working tree are updated (old versions
127
of Git used to limit the update to the current directory and its
128
subdirectories).
@@ -131,11 +131,11 @@ subdirectories).
131
--all::
132
--no-ignore-removal::
133
Update the index not only where the working tree has a file
134
- matching <pathspec> but also where the index already has an
134
+ matching _<pathspec>_ but also where the index already has an
135
entry. This adds, modifies, and removes index entries to
136
match the working tree.
137
+
138
-If no <pathspec> is given when `-A` option is used, all
138
+If no _<pathspec>_ is given when `-A` option is used, all
139
files in the entire working tree are updated (old versions
140
of Git used to limit the update to the current directory and its
141
subdirectories).
@@ -145,11 +145,11 @@ subdirectories).
145
Update the index by adding new files that are unknown to the
146
index and files modified in the working tree, but ignore
147
files that have been removed from the working tree. This
148
- option is a no-op when no <pathspec> is used.
148
+ option is a no-op when no _<pathspec>_ is used.
149
+
150
This option is primarily to help users who are used to older
151
-versions of Git, whose "git add <pathspec>..." was a synonym
152
-for "git add --no-all <pathspec>...", i.e. ignored removed files.
151
+versions of Git, whose "git add _<pathspec>_..." was a synonym
152
+for "git add --no-all _<pathspec>_...", i.e. ignored removed files.
153
154
-N::
155
--intent-to-add::
@@ -198,8 +198,8 @@ for "git add --no-all <pathspec>...", i.e. ignored removed files.
198
unchanged.
199
200
--pathspec-from-file=<file>::
201
- Pathspec is passed in `<file>` instead of commandline args. If
202
- `<file>` is exactly `-` then standard input is used. Pathspec
201
+ Pathspec is passed in _<file>_ instead of commandline args. If
202
+ _<file>_ is exactly `-` then standard input is used. Pathspec
203
elements are separated by LF or CR/LF. Pathspec elements can be
204
quoted as explained for the configuration variable `core.quotePath`
205
(see linkgit:git-config[1]). See also `--pathspec-file-nul` and