Perform a callback on each reference in the repository whose name matches the given pattern.
This function acts like git_reference_foreach()
with an additional
pattern match being applied to the reference name before issuing the
callback function. See that function for more information.
The pattern is matched using fnmatch or "glob" style where a '*' matches any sequence of letters, a '?' matches any letter, and square brackets can be used to define character ranges (such as "[0-9]" for digits).
Pattern to match (fnmatch-style) against reference name.
Additional data to pass to the callback
0 on success, GIT_EUSER on non-zero callback, or error code