diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2010-08-20 05:26:13 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-20 14:16:21 -0700 |
commit | 1b6c6cf006eb18cbd7c93b53a8cb494bd35e963a (patch) | |
tree | f45f9d378309b0a69ebd66ceadbf04712b4b2318 /Documentation | |
parent | f1005987e2c5295f57b19504baa86f1e8fc4a8c2 (diff) | |
download | git-1b6c6cf006eb18cbd7c93b53a8cb494bd35e963a.tar.gz |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-add.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index e22a62f065..e213a2efd7 100644 --- a/Documentation/git-add.txt +++ b/Documentation/git-add.txt @@ -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. |