Skip to main content

worktree_path_for

Function worktree_path_for 

Source
pub fn worktree_path_for(branch: &str) -> Result<PathBuf>
Expand description

The worktree directory for branch, under worktree_dir. Branch names nest as real directories, so feat/a lands at <dir>/feat/a and its basename still matches the branch tail - the way git’s own path-to-branch guessing reads a worktree path.