Skip to main content

worktree_add

Function worktree_add 

Source
pub fn worktree_add(
    repo_path: &str,
    worktree_path: &str,
    branch: &str,
    base_branch: &str,
    create_branch: bool,
) -> Result<(), String>
Expand description

Add a new git worktree. If create_branch is true, creates a new branch.