pub fn worktree_path(repo: &Path, name: &str) -> PathBuf
The worktree directory for a branch or local name. Invalid flat names use a neutral fallback; callers that create worktrees validate the segment first.