pub fn ensure_worktree( root: &Path, worktrees_base: &Path, branch: &str, ) -> Result<PathBuf>
Find the worktree for branch or create one under worktrees_base. Returns the canonical worktree path. Idempotent.
branch
worktrees_base