libgit2

git_revwalk_hide

Version:

Mark a commit (and its ancestors) uninteresting for the output.

The given OID must belong to a commit on the walked repository.

The resolved commit and all its parents will be hidden from the output on the revision walk.

Signature

int git_revwalk_hide(git_revwalk *walk, const git_oid *oid);

Parameters

In
walk

the walker being used for the traversal.

In
oid

the oid of commit that will be ignored during the traversal

Returns

int

0 or an error code

Versions