Skip to main content

worktree_path

Function worktree_path 

Source
pub fn worktree_path(repo: &Path, name: &str) -> PathBuf
Expand description

The worktree directory for a branch or local name. Invalid flat names use a neutral fallback; callers that create worktrees validate the segment first.