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

Function Odb_build_as_iter

src/odb.c:97–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static int
98Odb_build_as_iter(const git_oid *oid, void *accum)
99{
100 int err;
101 PyObject *py_oid = git_oid_to_python(oid);
102 if (py_oid == NULL)
103 return GIT_EUSER;
104
105 err = PyList_Append((PyObject*)accum, py_oid);
106 Py_DECREF(py_oid);
107 if (err < 0)
108 return GIT_EUSER;
109
110 return 0;
111}
112
113PyObject *
114Odb_as_iter(Odb *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…