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 method from git: reverse chronological order. This is the default sorting for new walkers.

GIT_SORT_TOPOLOGICAL
(1 << 0)

Sort the repository contents in topological order (no parents before all of its children are shown); this sorting mode can be combined with time sorting to produce git's `--date-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