Documentation: clarify quoting in "git add" example
The intended text looks like this: · Adds content from all *.txt files under Documentation directory and its subdirectories: $ git add Documentation/\*.txt Note that the asterisk * is quoted from the shell in this example; this lets the command include the files from subdirectories of Documentation/ directory. The current asciidoc 8.5.2 output has a backslash before _every_ asterisk, which is more confusing than it needs to be. Reported-by: Frédéric Brière <fbriere@fbriere.net> Cc: Junio C Hamano <gitster@pobox.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Aug 20, 2010 at 05:26 UTC
1b6c6cf006eb18cbd7c93b53a8cb494bd35e963a
1 file changed
+2
-2
Documentation/git-add.txt
+2
-2
@@ -157,14 +157,14 @@ those in info/exclude. See linkgit:gitrepository-layout[5].
157
EXAMPLES
158
--------
159
160
-* Adds content from all `\*.txt` files under `Documentation` directory
160
+* Adds content from all `*.txt` files under `Documentation` directory
161
and its subdirectories:
162
+
163
------------
164
$ git add Documentation/\*.txt
165
------------
166
+
167
-Note that the asterisk `\*` is quoted from the shell in this
167
+Note that the asterisk `*` is quoted from the shell in this
168
example; this lets the command include the files from
169
subdirectories of `Documentation/` directory.
170