libgit2

git_sort_t

Version:

Flags to specify the sorting which a revwalk should perform.

Values

GIT_SORT_NONE
0

Sort the output with the same default time-order method from git. This is the default sorting for new walkers.

GIT_SORT_TOPOLOGICAL
(1 << 0)

Sort the repository contents in topological order (parents before children); this sorting mode can be combined with time sorting to produce git's "time-order".

GIT_SORT_TIME
(1 << 1)

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

GIT_SORT_REVERSE
(1 << 2)

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

Versions