Re: [PATCH 4/8] wildmatch: support no FNM_PATHNAME mode

2012-12-27 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: diff --git a/wildmatch.c b/wildmatch.c index a79f97e..4fe1d65 100644 --- a/wildmatch.c +++ b/wildmatch.c @@ -77,14 +77,17 @@ static int dowild(const uchar *p, const uchar *text, unsigned int flags) continue;

Re: [PATCH 4/8] wildmatch: support no FNM_PATHNAME mode

2012-12-27 Thread Nguyen Thai Ngoc Duy
On Fri, Dec 28, 2012 at 1:24 PM, Junio C Hamano gits...@pobox.com wrote: if (*++p == '*') { const uchar *prev_p = p - 2; while (*++p == '*') {} - if ((prev_p == text || *prev_p == '/')

[PATCH 4/8] wildmatch: support no FNM_PATHNAME mode

2012-12-21 Thread Nguyễn Thái Ngọc Duy
So far, wildmatch() has always honoured directory boundary and there was no way to turn it off. Make it behave more like fnmatch() by requiring all callers that want the FNM_PATHNAME behaviour to pass that in the equivalent flag WM_PATHNAME. Callers that do not specify WM_PATHNAME will get