libgit2

git_revwalk_next

Version:

Get the next commit from the revision traversal.

Signature

int git_revwalk_next(git_commit **commit, git_revwalk *walk);

Parameters

In
commit

Pointer where to store the next commit

In
walk

the walker to pop the commit from.

Returns

int

GIT_SUCCESS if the next commit was found; GIT_EREVWALKOVER if there are no commits left to iterate

Versions