worktree_add

Function worktree_add 

Source
pub fn worktree_add(
    repo: RepoHandle,
    opts: WorktreeAddOpts,
) -> AsyncTask<GitResult<PathBuf>> 
Expand description

Create a new linked worktree.

§Examples

let opts = WorktreeAddOpts::new("/path/to/worktree")
    .committish("feature-branch");
let path = worktree_add(repo, opts).await?;