| 404 | |
| 405 | |
| 406 | int |
| 407 | Odb_contains(Odb *self, PyObject *py_name) |
| 408 | { |
| 409 | git_oid oid; |
| 410 | size_t len; |
| 411 | |
| 412 | len = py_oid_to_git_oid(py_name, &oid); |
| 413 | if (len == 0) { |
| 414 | PyErr_SetString(PyExc_TypeError, "name must be an oid"); |
| 415 | return -1; |
| 416 | } |
| 417 | |
| 418 | return git_odb_exists(self->odb, &oid); |
| 419 | } |
| 420 | |
| 421 | PySequenceMethods Odb_as_sequence = { |
| 422 | 0, /* sq_length */ |
nothing calls this directly
no test coverage detected
searching dependent graphs…