worktree_add

Function worktree_add 

Source
pub async fn worktree_add(
    path: impl AsRef<Path>,
    worktree_path: impl AsRef<Path>,
    branch: String,
    base_branch: String,
    create_branch: bool,
) -> Result<GitWorktreeInfo>
Expand description

Create a worktree asynchronously.