libgit2

git_revwalk_hide_glob

Version:

Hide matching references.

The OIDs pointed to by the references that match the given glob pattern and their ancestors will be hidden from the output on the revision walk.

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_hide_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