From: Junio C Hamano Date: Wed, 31 Jan 2018 23:22:46 GMT Subject: Re: [PATCH] gitignore.txt: elaborate shell glob syntax Message-ID: In-Reply-To: <20180131093051.15525-3-pclouds@gmail.com> Nguyễn Thái Ngọc Duy writes: > `.gitignore` file). > > - - 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/{asterisk}.html" matches > - "Documentation/git.html" but not "Documentation/ppc/ppc.html" > - or "tools/perf/Documentation/perf.html". > + - Otherwise, Git treats the pattern as a shell glob: '{asterisk}' > + matches anything except '/', '?' matches any one character except > + '/' and '[]' matches one character in a selected range. See > + fnmatch(3) and the FNM_PATHNAME flag for a more accurate > + description. Where the original did not quote single letters at all, this uses a pair of single quotes. Did you make sure it renders well in HTML and manpage already or should I do that for you before applying? I think what you wrote is accurate enough already, and those who want to go to fnmatch(3) would do so not for accuracy but for authority ;-) Perhaps s/accurate/detailed/?