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:
@ -1186,7 +1186,7 @@ int ref_excluded(struct string_list *ref_excludes, const char *path)
|
||||
if (!ref_excludes)
|
||||
return 0;
|
||||
for_each_string_list_item(item, ref_excludes) {
|
||||
if (!fnmatch(item->string, path, 0))
|
||||
if (!wildmatch(item->string, path, 0, NULL))
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user