git_revwalk_next

Get the next commit from the revision walk.

The initial call to this method is *not* blocking when iterating through a repo with a time-sorting mode.

Iterating with Topological or inverted modes makes the initial call blocking to preprocess the commit list, but this block should be mostly unnoticeable on most repositories (topological preprocessing times at 0.3s on the git.git repo).

The revision walker is reset when the walk is over.

extern (C) nothrow @nogc
int
git_revwalk_next

Parameters

out_ libgit2_d.oid.git_oid*

Pointer where to store the oid of the next commit

walk libgit2_d.types.git_revwalk*

the walker to pop the commit from.

Return Value

Type: int

0 if the next commit was found; git_error_code.GIT_ITEROVER if there are no commits left to iterate

Meta