pub fn checkpoint(dir: &Path, tmp: &Path) -> Result<Checkpoint, GitError>
Snapshots the working tree of dir. tmp holds the temporary index (inside speccoder’s state directory).
dir
tmp