libgit2

revwalk

Version:
Git revision traversal routines

Objects

Representation of an in-progress walk through the commits in a repo

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 revision walker for reuse

Mark a commit to start traversal from

Push matching references

Push the repository's HEAD

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

Hide matching references

Hide the repository's HEAD

Push the OID pointed to by a reference

Hide the OID pointed to by a reference

Get the next commit from the revision walk

Change the sorting mode when iterating through the repository's contents

Push and hide the respective endpoints of the given range

Simplify the history by first-parent

Free a revision walker previously allocated

Return the repository on which this walker is operating