extern const struct worktree *find_shared_symref(const char *symref,
const char *target);
+int is_worktree_being_rebased(const struct worktree *wt, const char *target);
+int is_worktree_being_bisected(const struct worktree *wt, const char *target);
+
/*
* Similar to git_path() but can produce paths for a specified
* worktree instead of current one