Merge branch 'ab/wildmatch'
Minor code cleanup. * ab/wildmatch: wildmatch: remove unused wildopts parameter
This commit is contained in:
8
dir.c
8
dir.c
@ -92,13 +92,11 @@ int git_fnmatch(const struct pathspec_item *item,
|
||||
if (item->magic & PATHSPEC_GLOB)
|
||||
return wildmatch(pattern, string,
|
||||
WM_PATHNAME |
|
||||
(item->magic & PATHSPEC_ICASE ? WM_CASEFOLD : 0),
|
||||
NULL);
|
||||
(item->magic & PATHSPEC_ICASE ? WM_CASEFOLD : 0));
|
||||
else
|
||||
/* wildmatch has not learned no FNM_PATHNAME mode yet */
|
||||
return wildmatch(pattern, string,
|
||||
item->magic & PATHSPEC_ICASE ? WM_CASEFOLD : 0,
|
||||
NULL);
|
||||
item->magic & PATHSPEC_ICASE ? WM_CASEFOLD : 0);
|
||||
}
|
||||
|
||||
static int fnmatch_icase_mem(const char *pattern, int patternlen,
|
||||
@ -122,7 +120,7 @@ static int fnmatch_icase_mem(const char *pattern, int patternlen,
|
||||
|
||||
if (ignore_case)
|
||||
flags |= WM_CASEFOLD;
|
||||
match_status = wildmatch(use_pat, use_str, flags, NULL);
|
||||
match_status = wildmatch(use_pat, use_str, flags);
|
||||
|
||||
strbuf_release(&pat_buf);
|
||||
strbuf_release(&str_buf);
|
||||
|
Reference in New Issue
Block a user