| 498 | } |
| 499 | |
| 500 | int |
| 501 | Repository_workdir__set__(Repository *self, PyObject *py_workdir) |
| 502 | { |
| 503 | const char *workdir = pgit_borrow(py_workdir); |
| 504 | if (workdir == NULL) |
| 505 | return -1; |
| 506 | |
| 507 | int err = git_repository_set_workdir(self->repo, workdir, 0 /* update_gitlink */); |
| 508 | if (err) { |
| 509 | Error_set_str(err, workdir); |
| 510 | return -1; |
| 511 | } |
| 512 | |
| 513 | return 0; |
| 514 | } |
| 515 | |
| 516 | PyDoc_STRVAR(Repository_descendant_of__doc__, |
| 517 | "descendant_of(oid1: Oid, oid2: Oid) -> bool\n" |
nothing calls this directly
no test coverage detected
searching dependent graphs…