pub fn snapshot(project: &Path, message: &str) -> Result<Checkpoint, String>
Snapshot the current working tree. Returns the new checkpoint, or — when the tree is unchanged since the last snapshot — the existing HEAD checkpoint.