Skip to content

Commit 76ef0be

Browse files
Update comments describing sorting options
Sorting options were changed in libgit2. See libgit2/libgit2@82d4c0e.
1 parent d1b2c37 commit 76ef0be

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ext/rugged/rugged.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,17 +554,15 @@ void Init_rugged(void)
554554
Init_rugged_rebase();
555555

556556
/*
557-
* Sort the repository contents in no particular ordering;
558-
* this sorting is arbitrary, implementation-specific
559-
* and subject to change at any time.
557+
* Sort the output with the same default time-order method from git.
560558
* This is the default sorting for new walkers.
561559
*/
562560
rb_define_const(rb_mRugged, "SORT_NONE", INT2FIX(GIT_SORT_NONE));
563561

564562
/*
565-
* Sort the repository contents in topological order
566-
* (parents before children); this sorting mode
567-
* can be combined with time sorting.
563+
* Sort the repository contents in topological order (parents before
564+
* children); this sorting mode can be combined with time sorting to
565+
* produce git's "time-order".
568566
*/
569567
rb_define_const(rb_mRugged, "SORT_TOPO", INT2FIX(GIT_SORT_TOPOLOGICAL));
570568

0 commit comments

Comments
 (0)