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
@ -1191,7 +1191,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