libgit2

git_revwalk_reset

Version:

Reset the revision walker for reuse.

This will clear all the pushed and hidden commits, and leave the walker in a blank state (just like at creation) ready to receive new commit pushes and start a new walk.

The revision walk is automatically reset when a walk is over.

Signature

int git_revwalk_reset(git_revwalk *walker);

Parameters

In
walker

handle to reset.

Returns

int

0 or an error code

Versions