pub fn create(name: &str, base: &str) -> Result<PathBuf, WorktreeError>
Create a new git worktree.
Returns an error if the worktree cannot be created.