MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / checkpoint_matches_snapshot

Function checkpoint_matches_snapshot

atomic-cli/src/commands/git/shim.rs:1676–1681  ·  view source on GitHub ↗
(checkpoint: &ShimCheckpoint, snapshot: &ShimSnapshot)

Source from the content-addressed store, hash-verified

1674}
1675
1676fn checkpoint_matches_snapshot(checkpoint: &ShimCheckpoint, snapshot: &ShimSnapshot) -> bool {
1677 checkpoint.view == snapshot.view
1678 && checkpoint.atomic_state == snapshot.atomic_state
1679 && checkpoint.git_head == snapshot.git_head
1680 && checkpoint.git_tree == snapshot.git_tree
1681}
1682
1683/// Members of `view` that no Git commit introduced and that touch only
1684/// Atomic-private paths (`.atomic*`): the repository initialization change

Callers 1

switch_transactionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected