libgit2

revwalk

Version:
Git revision traversal routines

Objects

Macros

Sort the repository contents in no particular ordering; this sorting is arbitrary, implementation-specific and subject to change at any time

Sort the repository contents in topological order (parents before children); this sorting mode can be combined with time sorting

Sort the repository contents by commit time; this sorting mode can be combined with topological sorting

Iterate through the repository contents in reverse order; this sorting mode can be combined with any of the above

Functions

Allocate a new revision walker to iterate through a repo

Reset the walking machinery for reuse

Mark a commit to start traversal from The commit object must belong to the repo which is being walked through.

Mark a commit (and its ancestors) uninteresting for the output

Get the next commit from the revision traversal

Change the sorting mode when iterating through the repository's contents Changing the sorting mode resets the walker.

Free a revwalk previously allocated

Return the repository on which this walker is operating