pub async fn restore_to(worktree: &Path, rev: &str) -> Result<()>Expand description
Put the worktree back on rev: tracked files reset, untracked files
removed. Ignored paths (a [worktree] setup’s products are hidden through
the per-worktree excludes) are left alone.