libgit2

git_reference_iterator_glob_new

Version:

Create an iterator for the repo's references that match the specified glob

Signature

int git_reference_iterator_glob_new(git_reference_iterator **out, git_repository *repo, const char *glob);

Parameters

In
out

pointer in which to store the iterator

In
repo

the repository

const char *
In
glob

the glob to match against the reference names

Returns

int

0 or an error code

Versions