Skip to content

Commit 2dd88a5

Browse files
authored
Merge pull request libgit2#4811 from libgit2/cmn/sorting-modes
revwalk: refer the sorting modes more to git's options
2 parents bc34cb6 + 330b10c commit 2dd88a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/git2/revwalk.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ GIT_BEGIN_DECL
2525
*/
2626
typedef enum {
2727
/**
28-
* Sort the output with the same default time-order method from git.
29-
* This is the default sorting for new walkers.
28+
* Sort the output with the same default method from `git`: reverse
29+
* chronological order. This is the default sorting for new walkers.
3030
*/
3131
GIT_SORT_NONE = 0,
3232

3333
/**
34-
* Sort the repository contents in topological order (parents before
35-
* children); this sorting mode can be combined with time sorting to
36-
* produce git's "time-order".
34+
* Sort the repository contents in topological order (no parents before
35+
* all of its children are shown); this sorting mode can be combined
36+
* with time sorting to produce `git`'s `--date-order``.
3737
*/
3838
GIT_SORT_TOPOLOGICAL = 1 << 0,
3939

0 commit comments

Comments
 (0)