| 111 | } |
| 112 | |
| 113 | PyObject * |
| 114 | Odb_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 | |
| 130 | exit: |
| 131 | Py_DECREF(accum); |
| 132 | return ret; |
| 133 | } |
| 134 | |
| 135 | |
| 136 | PyDoc_STRVAR(Odb_add_disk_alternate__doc__, |
nothing calls this directly
no test coverage detected
searching dependent graphs…