Skip to main content

worktree_add

Function worktree_add 

Source
pub fn worktree_add(
    repo: &Path,
    path: &Path,
    branch: &str,
    base: Option<&str>,
    new_branch: bool,
    lock: bool,
    lock_reason: Option<&str>,
) -> Result<(), WorktreeError>
Expand description

Run git worktree add with the appropriate flags. Returns Ok(()) on success.