Skip to main content

add_worktree

Function add_worktree 

Source
pub fn add_worktree(root: &Path, wt_path: &Path, branch: &str) -> Result<()>
Expand description

Add a permanent worktree for the given branch at wt_path. Fetches the branch locally first if needed.