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
@ -36,7 +36,7 @@ static int show_reference(const char *refname, const unsigned char *sha1,
|
||||
{
|
||||
struct show_data *data = cb_data;
|
||||
|
||||
if (!fnmatch(data->pattern, refname, 0)) {
|
||||
if (!wildmatch(data->pattern, refname, 0, NULL)) {
|
||||
if (data->format == REPLACE_FORMAT_SHORT)
|
||||
printf("%s\n", refname);
|
||||
else if (data->format == REPLACE_FORMAT_MEDIUM)
|
||||
|
Reference in New Issue
Block a user