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
@ -150,7 +150,7 @@ static int get_name(const char *path, const unsigned char *sha1, int flag, void
|
||||
return 0;
|
||||
|
||||
/* Accept only tags that match the pattern, if given */
|
||||
if (pattern && (!is_tag || fnmatch(pattern, path + 10, 0)))
|
||||
if (pattern && (!is_tag || wildmatch(pattern, path + 10, 0, NULL)))
|
||||
return 0;
|
||||
|
||||
/* Is it annotated? */
|
||||
|
Reference in New Issue
Block a user