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

Function Odb_as_iter

src/odb.c:113–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113PyObject *
114Odb_as_iter(Odb *self)
115{
116 int err;
117 PyObject *accum = PyList_New(0);
118 PyObject *ret = NULL;
119
120 err = git_odb_foreach(self->odb, Odb_build_as_iter, (void*)accum);
121 if (err == GIT_EUSER)
122 goto exit;
123 if (err < 0) {
124 ret = Error_set(err);
125 goto exit;
126 }
127
128 ret = PyObject_GetIter(accum);
129
130exit:
131 Py_DECREF(accum);
132 return ret;
133}
134
135
136PyDoc_STRVAR(Odb_add_disk_alternate__doc__,

Callers

nothing calls this directly

Calls 1

Error_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…