Re: [PATCH 8/8] wildmatch: advance faster in <asterisk> + <literal> patterns
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Dec 28, 2012, 06:56 UTC
- Message-ID
- <CACsJy8A5PqVpn4SihSdDv6w5xusr1ac4MBETJ0mzvvguZ2YwnQ@mail.gmail.com>
- In-Reply-To
- <7vpq1uk82q.fsf@alter.siamese.dyndns.org>
On Fri, Dec 28, 2012 at 1:24 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> + while ((t_ch = *text) != '\0' &&
>> + (!(flags & WM_PATHNAME) || t_ch != '/')) {
>
> Why do we look at (flags & WM_PATHMAME) and not "special" here?Because I was careless. Thanks for spotting it. I'll fix it and add some more tests about **<literal> with WM_PATHNAME.
-- Duy