sorting method

void sorting(
  1. Set<GitSort> sorting
)

Changes the sorting mode when iterating through the repository's contents to provided sorting combination of GitSort modes.

Available sorting modes:

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),
  );
}