libgit2

git_revwalk_new

Version:

Allocate a new revision walker to iterate through a repo.

Signature

int git_revwalk_new(git_revwalk **walker, git_repository *repo);

Parameters

git_revwalk **
In
walker

pointer to the new revision walker

git_repository *
In
repo

the repo to walk through

Returns

int

0 on success; error code otherwise

Versions