| 213 | "object type will raise InvalidSpecError.\n"); |
| 214 | |
| 215 | PyObject * |
| 216 | Object_peel(Object *self, PyObject *py_type) |
| 217 | { |
| 218 | int err; |
| 219 | git_otype otype; |
| 220 | git_object *peeled; |
| 221 | |
| 222 | if (Object__load(self) == NULL) { return NULL; } // Lazy load |
| 223 | |
| 224 | otype = py_object_to_otype(py_type); |
| 225 | if (otype == GIT_OBJECT_INVALID) |
| 226 | return NULL; |
| 227 | |
| 228 | err = git_object_peel(&peeled, self->obj, otype); |
| 229 | if (err < 0) |
| 230 | return Error_set(err); |
| 231 | |
| 232 | return wrap_object(peeled, self->repo, NULL); |
| 233 | } |
| 234 | |
| 235 | Py_hash_t |
| 236 | Object_hash(Object *self) |
nothing calls this directly
no test coverage detected
searching dependent graphs…