use wildmatch() directly without fnmatch() wrapper
Make it clear that we don't use fnmatch() anymore. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
5f95c9f850
commit
eb07894fe0
@ -73,7 +73,7 @@ static int match_order(const char *path)
|
||||
strbuf_addstr(&p, path);
|
||||
while (p.buf[0]) {
|
||||
char *cp;
|
||||
if (!fnmatch(order[i], p.buf, 0))
|
||||
if (!wildmatch(order[i], p.buf, 0, NULL))
|
||||
return i;
|
||||
cp = strrchr(p.buf, '/');
|
||||
if (!cp)
|
||||
|
||||
Reference in New Issue
Block a user