sorting method
Changes the sorting mode when iterating through the repository's contents
to provided sorting combination of GitSort modes.
Available sorting modes:
- GitSort.none: No sorting
- GitSort.topological: Sort by commit date
- GitSort.time: Sort by commit date
- GitSort.reverse: Reverse the sorting
Changing the sorting mode resets the walker.
Implementation
void sorting(Set<GitSort> sorting) {
bindings.sorting(
walkerPointer: _revWalkPointer,
sortMode: sorting.fold(0, (acc, e) => acc | e.value),
);
}