| 2152 | "\n" |
| 2153 | "Lookup a worktree from its name."); |
| 2154 | PyObject * |
| 2155 | Repository_lookup_worktree(Repository *self, PyObject *args) |
| 2156 | { |
| 2157 | char *c_name; |
| 2158 | git_worktree *wt; |
| 2159 | int err; |
| 2160 | |
| 2161 | if (!PyArg_ParseTuple(args, "s", &c_name)) |
| 2162 | return NULL; |
| 2163 | |
| 2164 | err = git_worktree_lookup(&wt, self->repo, c_name); |
| 2165 | if (err < 0) |
| 2166 | return Error_set(err); |
| 2167 | |
| 2168 | return wrap_worktree(self, wt); |
| 2169 | } |
| 2170 | |
| 2171 | PyDoc_STRVAR(Repository_list_worktrees__doc__, |
| 2172 | "list_worktrees() -> list[str]\n" |
nothing calls this directly
no test coverage detected
searching dependent graphs…