@matheusbsbs / matheus-bagliano / commits / 9257a1efe1
Fork 0

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>

Jonathan Nieder committed Aug 20, 2010 at 05:30 UTC 9257a1efe1f8a0e8244da6f4a4d8178fbb41699d
1 file changed +2 -2
Documentation/gitignore.txt
+2 -2
@@ -90,12 +90,12 @@ Patterns have the following format:
90 - Otherwise, git treats the pattern as a shell glob suitable
91 for consumption by fnmatch(3) with the FNM_PATHNAME flag:
92 wildcards in the pattern will not match a / in the pathname.
93 - For example, "Documentation/\*.html" matches
93 + For example, "Documentation/{asterisk}.html" matches
94 "Documentation/git.html" but not "Documentation/ppc/ppc.html"
95 or "tools/perf/Documentation/perf.html".
96
97 - A leading slash matches the beginning of the pathname.
98 - For example, "/*.c" matches "cat-file.c" but not
98 + For example, "/{asterisk}.c" matches "cat-file.c" but not
99 "mozilla-sha1/sha1.c".
100
101 An example: