git_reference_foreach_glob

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).

extern (C) nothrow @nogc
int
git_reference_foreach_glob

Parameters

repo libgit2_d.types.git_repository*

Repository where to find the refs

glob const(char)*

Pattern to match (fnmatch-style) against reference name.

callback git_reference_foreach_name_cb

Function which will be called for every listed ref

payload void*

Additional data to pass to the callback

Return Value

Type: int

0 on success, git_error_code.GIT_EUSER on non-zero callback, or error code

Meta