diff options
Diffstat (limited to 'worktree.h')
-rw-r--r-- | worktree.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/worktree.h b/worktree.h index 13949093c..7ad15da0d 100644 --- a/worktree.h +++ b/worktree.h @@ -30,6 +30,14 @@ extern struct worktree **get_worktrees(void); extern const char *get_worktree_git_dir(const struct worktree *wt); /* + * Search a worktree that can be unambiguously identified by + * "arg". "prefix" must not be NULL. + */ +extern struct worktree *find_worktree(struct worktree **list, + const char *prefix, + const char *arg); + +/* * Free up the memory for worktree(s) */ extern void free_worktrees(struct worktree **); |