| 446 | "accepted."); |
| 447 | |
| 448 | PyObject * |
| 449 | Repository_revparse(Repository *self, PyObject *py_spec) |
| 450 | { |
| 451 | /* Get the C revision spec */ |
| 452 | const char *c_spec = pgit_borrow(py_spec); |
| 453 | if (c_spec == NULL) |
| 454 | return NULL; |
| 455 | |
| 456 | /* Lookup */ |
| 457 | git_revspec revspec; |
| 458 | int err = git_revparse(&revspec, self->repo, c_spec); |
| 459 | if (err) { |
| 460 | return Error_set_str(err, c_spec); |
| 461 | } |
| 462 | return wrap_revspec(&revspec, self); |
| 463 | } |
| 464 | |
| 465 | |
| 466 | PyDoc_STRVAR(Repository_path__doc__, |
nothing calls this directly
no test coverage detected
searching dependent graphs…