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

Function tree_entry_cmp

src/pygit2.c:261–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259 "the same.");
260
261PyObject *
262tree_entry_cmp(PyObject *self, PyObject *args)
263{
264 Object *a, *b;
265 int cmp;
266
267 if (!PyArg_ParseTuple(args, "O!O!", &ObjectType, &a, &ObjectType, &b))
268 return NULL;
269
270 if (a->entry == NULL || b->entry == NULL) {
271 PyErr_SetString(PyExc_ValueError, "objects lack entry information");
272 return NULL;
273 }
274
275 cmp = git_tree_entry_cmp(a->entry, b->entry);
276 return PyLong_FromLong(cmp);
277}
278
279PyDoc_STRVAR(filter_register__doc__,
280 "filter_register(name: str, filter_cls: Type[Filter], [priority: int = C.GIT_FILTER_DRIVER_PRIORITY]) -> None\n"

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…