libgit2

git_revwalk_hide

Version:

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

The given OID must belong to a committish 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 *commit_id);

Parameters

In
walk

the walker being used for the traversal.

In
commit_id

the oid of commit that will be ignored during the traversal

Returns

int

0 or an error code

Versions