Re: [PATCH] gitignore.txt: elaborate shell glob syntax
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 31, 2018, 23:22 UTC
- Message-ID
- <xmqqh8r1r4u1.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20180131093051.15525-3-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
Show 13 quoted lines
> `.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/?