diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2010-08-20 05:30:56 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-20 14:16:21 -0700 |
commit | 9257a1efe1f8a0e8244da6f4a4d8178fbb41699d (patch) | |
tree | e0c20fdc2d5c56bc29866640a7cb5efdcdd986ad | |
parent | c300578f12ec23ba22f16af16259650e38e88f87 (diff) | |
download | git-9257a1efe1f8a0e8244da6f4a4d8178fbb41699d.tar.gz git-9257a1efe1f8a0e8244da6f4a4d8178fbb41699d.tar.xz |
Documentation: clarify quoting in gitignore docs
An asterisk in "Documentation/*.txt" quoted with \ to avoid bold text
is being output as \* because asciidoc does not consider it a
candidate for escaping (there is no matching * to pair it with).
So the manual looks like it is saying that one should write
"Documentation/\*.txt" in the .gitignore file.
Reported-by: Frédéric Brière <fbriere@fbriere.net>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | Documentation/gitignore.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt index e10fa88b8..7dc2e8b0b 100644 --- a/Documentation/gitignore.txt +++ b/Documentation/gitignore.txt @@ -90,12 +90,12 @@ Patterns have the following format: - Otherwise, git treats the pattern as a shell glob suitable for consumption by fnmatch(3) with the FNM_PATHNAME flag: wildcards in the pattern will not match a / in the pathname. - For example, "Documentation/\*.html" matches + For example, "Documentation/{asterisk}.html" matches "Documentation/git.html" but not "Documentation/ppc/ppc.html" or "tools/perf/Documentation/perf.html". - A leading slash matches the beginning of the pathname. - For example, "/*.c" matches "cat-file.c" but not + For example, "/{asterisk}.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". An example: |