git_revwalk_push

Add a new root for the traversal

The pushed commit will be marked as one of the roots from which to start the walk. This commit may not be walked if it or a child is hidden.

At least one commit must be pushed onto the walker before a walk can be started.

The given id must belong to a committish on the walked repository.

extern (C) nothrow @nogc
int
git_revwalk_push

Parameters

walk libgit2_d.types.git_revwalk*

the walker being used for the traversal.

id const(libgit2_d.oid.git_oid)*

the oid of the commit to start from.

Return Value

Type: int

0 or an error code

Meta