diff options
Diffstat (limited to 'worktree.h')
-rw-r--r-- | worktree.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/worktree.h b/worktree.h index b8a851b92b..d242a6e71c 100644 --- a/worktree.h +++ b/worktree.h @@ -62,6 +62,12 @@ struct worktree *find_worktree(struct worktree **list, const char *arg); /* + * Return the worktree corresponding to `path`, or NULL if no such worktree + * exists. + */ +struct worktree *find_worktree_by_path(struct worktree **, const char *path); + +/* * Return true if the given worktree is the main one. */ int is_main_worktree(const struct worktree *wt); |