mirror of
https://github.com/git/git.git
synced 2024-11-25 02:44:48 +08:00
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>
This commit is contained in:
parent
f1005987e2
commit
1b6c6cf006
@ -157,14 +157,14 @@ those in info/exclude. See linkgit:gitrepository-layout[5].
|
||||
EXAMPLES
|
||||
--------
|
||||
|
||||
* Adds content from all `\*.txt` files under `Documentation` directory
|
||||
* 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
|
||||
Note that the asterisk `*` is quoted from the shell in this
|
||||
example; this lets the command include the files from
|
||||
subdirectories of `Documentation/` directory.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user