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

Function OdbBackend_build_as_iter

src/odb_backend.c:302–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302static int
303OdbBackend_build_as_iter(const git_oid *oid, void *accum)
304{
305 int err;
306
307 PyObject *py_oid = git_oid_to_python(oid);
308 if (py_oid == NULL)
309 return GIT_EUSER;
310
311 err = PyList_Append((PyObject*)accum, py_oid);
312 Py_DECREF(py_oid);
313
314 if (err < 0)
315 return GIT_EUSER;
316
317 return 0;
318}
319
320PyObject *
321OdbBackend_as_iter(OdbBackend *self)

Callers

nothing calls this directly

Calls 1

git_oid_to_pythonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…