pub fn create_worktree( repo_root: &Path, git_ref: &str, ) -> Result<TempWorktree, Error>
Create a temporary worktree checked out at the given git ref.