pub async fn worktree_add_detached( repo: &Path, path: &Path, rev: &str, ) -> Result<()>
Create a worktree at path with a detached HEAD at rev.
path
rev