Commit 330b10ca by Carlos Martín Nieto

revwalk: refer the sorting modes more to git's options

Show more directly what the sorting modes correspond to in git's `rev-list` as
that's the reference implementation for what the possible sorting orders are.
parent bc34cb63
...@@ -25,15 +25,15 @@ GIT_BEGIN_DECL ...@@ -25,15 +25,15 @@ GIT_BEGIN_DECL
*/ */
typedef enum { typedef enum {
/** /**
* Sort the output with the same default time-order method from git. * Sort the output with the same default method from `git`: reverse
* This is the default sorting for new walkers. * chronological order. This is the default sorting for new walkers.
*/ */
GIT_SORT_NONE = 0, GIT_SORT_NONE = 0,
/** /**
* Sort the repository contents in topological order (parents before * Sort the repository contents in topological order (no parents before
* children); this sorting mode can be combined with time sorting to * all of its children are shown); this sorting mode can be combined
* produce git's "time-order". * with time sorting to produce `git`'s `--date-order``.
*/ */
GIT_SORT_TOPOLOGICAL = 1 << 0, GIT_SORT_TOPOLOGICAL = 1 << 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment