libgit2

git_revwalk_sorting

Version:

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

Signature

int git_revwalk_sorting(git_revwalk *walk, unsigned int sort_mode);

Parameters

git_revwalk *
In
walk

the walker being used for the traversal.

unsigned int
In
sort_mode

combination of GIT_RPSORT_XXX flags

Returns

int

Versions