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

Function Walker_sort

src/walker.c:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 "Change the sorting mode (this resets the walker).");
98
99PyObject *
100Walker_sort(Walker *self, PyObject *py_sort_mode)
101{
102 long sort_mode;
103
104 sort_mode = PyLong_AsLong(py_sort_mode);
105 if (sort_mode == -1 && PyErr_Occurred())
106 return NULL;
107
108 git_revwalk_sorting(self->walk, (unsigned int)sort_mode);
109
110 Py_RETURN_NONE;
111}
112
113
114PyDoc_STRVAR(Walker_reset__doc__,

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…