MCPcopy Create free account
hub / github.com/git/git / wildmatch

Function wildmatch

wildmatch.c:286–290  ·  view source on GitHub ↗

Match the "pattern" against the "text" string. */

Source from the content-addressed store, hash-verified

284
285/* Match the "pattern" against the "text" string. */
286int wildmatch(const char *pattern, const char *text, unsigned int flags)
287{
288 int res = dowild((const uchar*)pattern, (const uchar*)text, flags);
289 return res == WM_MATCH ? WM_MATCH : WM_NOMATCH;
290}

Callers 15

include_by_gitdirFunction · 0.85
include_by_branchFunction · 0.85
match_patternFunction · 0.85
match_name_as_pathFunction · 0.85
dest_suppressedFunction · 0.85
match_orderFunction · 0.85
ref_excludedFunction · 0.85
git_fnmatchFunction · 0.85
fnmatch_icase_memFunction · 0.85

Calls 1

dowildFunction · 0.85

Tested by 3

cmd__wildmatchFunction · 0.68
testsuiteFunction · 0.68