Repository where to find the refs
Pattern to match (fnmatch-style) against reference name.
Function which will be called for every listed ref
Additional data to pass to the callback
0 on success, git_error_code.GIT_EUSER on non-zero callback, or error code
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).