diff options
Diffstat (limited to 'worktree.h')
-rw-r--r-- | worktree.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/worktree.h b/worktree.h index 7ad15da0dc..e1c4715238 100644 --- a/worktree.h +++ b/worktree.h @@ -38,6 +38,11 @@ extern struct worktree *find_worktree(struct worktree **list, const char *arg); /* + * Return true if the given worktree is the main one. + */ +extern int is_main_worktree(const struct worktree *wt); + +/* * Free up the memory for worktree(s) */ extern void free_worktrees(struct worktree **); |