Skip to main content

ensure_worktree

Function ensure_worktree 

Source
pub fn ensure_worktree(
    root: &Path,
    worktrees_base: &Path,
    branch: &str,
) -> Result<PathBuf>
Expand description

Find the worktree for branch or create one under worktrees_base. Returns the canonical worktree path. Idempotent.