pub fn restore(
dir: &Path,
tmp: &Path,
target: &Checkpoint,
) -> Result<Vec<Change>, GitError>Expand description
Makes the working tree of dir equal to target: differing
paths are rewritten from the checkpoint, paths the checkpoint lacks are
removed. HEAD, the index and refs are not touched. Returns what changed.