libgit2

git_revwalk_push_glob

Version:

Push matching references

The OIDs pointed to by the references that match the given glob pattern will be pushed to the revision walker.

A leading 'refs/' is implied if not present as well as a trailing '/
*' if the glob lacks '?', '
*' or '['.

Any references matching this glob which do not point to a committish will be ignored.

Signature

int git_revwalk_push_glob(git_revwalk *walk, const char *glob);

Parameters

In
walk

the walker being used for the traversal

const char *
In
glob

the glob pattern references should match

Returns

int

0 or an error code

Versions