libgit2

git_revwalk_push

Version:

Mark a commit to start traversal from.

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

The given commit will be used as one of the roots when starting the revision walk. At least one commit must be pushed the repository before a walk can be started.

Signature

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

Parameters

In
walk
In
oid

the oid of the commit to start from.

Returns

int

0 on success; error code otherwise

Versions