Merge branch 'nd/no-more-fnmatch'
We started using wildmatch() in place of fnmatch(3); complete the process and stop using fnmatch(3). * nd/no-more-fnmatch: actually remove compat fnmatch source code stop using fnmatch (either native or compat) Revert "test-wildmatch: add "perf" command to compare wildmatch and fnmatch" use wildmatch() directly without fnmatch() wrapper
This commit is contained in:
@ -67,7 +67,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