MCPcopy Create free account
hub / github.com/libgit2/pygit2 / SortMode

Class SortMode

pygit2/enums.py:1184–1212  ·  view source on GitHub ↗

Flags to specify the sorting which a revwalk should perform.

Source from the content-addressed store, hash-verified

1182
1183
1184class SortMode(IntFlag):
1185 """
1186 Flags to specify the sorting which a revwalk should perform.
1187 """
1188
1189 NONE = _pygit2.GIT_SORT_NONE
1190 """
1191 Sort the output with the same default method from `git`: reverse
1192 chronological order. This is the default sorting for new walkers.
1193 """
1194
1195 TOPOLOGICAL = _pygit2.GIT_SORT_TOPOLOGICAL
1196 """
1197 Sort the repository contents in topological order (no parents before
1198 all of its children are shown); this sorting mode can be combined
1199 with TIME sorting to produce `git`'s `--date-order``.
1200 """
1201
1202 TIME = _pygit2.GIT_SORT_TIME
1203 """
1204 Sort the repository contents by commit time; this sorting mode can be
1205 combined with TOPOLOGICAL.
1206 """
1207
1208 REVERSE = _pygit2.GIT_SORT_REVERSE
1209 """
1210 Iterate through the repository contents in reverse order;
1211 this sorting mode can be combined with any of the above.
1212 """
1213
1214
1215class StashApplyProgress(IntEnum):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…