git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Documentation: git-add: correct first example
@ 2010-02-08 17:35 Greg Bacon
  2010-02-08 19:22 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Bacon @ 2010-02-08 17:35 UTC (permalink / raw)
  To: git; +Cc: gitster, Greg Bacon

The first example for git-add covers recursive adding of patterns but
contains an extra backslash. If copied verbatim, the command fails
with

fatal: pathspec 'Documentation/\*.txt' did not match any files

This patch corrects the problem and adds an equivalent invocation.

Signed-off-by: Greg Bacon <gbacon@dbresearch.net>
---
 Documentation/git-add.txt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index f74fcf3..93e8f57 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -149,11 +149,12 @@ 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
+$ git add Documentation/\*.txt
+$ git add 'Documentation/*.txt'  # same thing
 ------------
 +
 Note that the asterisk `\*` is quoted from the shell in this
-- 
1.6.5.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-08 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-08 17:35 [PATCH] Documentation: git-add: correct first example Greg Bacon
2010-02-08 19:22 ` Junio C Hamano
2010-02-08 20:08   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).