Function add_worktree

Source
pub fn add_worktree(
    directory: &Path,
    name: &WorktreeName,
    track: Option<(RemoteName, BranchName)>,
    no_track: bool,
) -> Result<Option<Vec<Warning>>, Error>