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

Function checkpoint_matches_snapshot

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

Source from the content-addressed store, hash-verified

1630}
1631
1632fn checkpoint_matches_snapshot(checkpoint: &ShimCheckpoint, snapshot: &ShimSnapshot) -> bool {
1633 checkpoint.view == snapshot.view
1634 && checkpoint.atomic_state == snapshot.atomic_state
1635 && checkpoint.git_head == snapshot.git_head
1636 && checkpoint.git_tree == snapshot.git_tree
1637}
1638
1639/// Members of `view` that no Git commit introduced and that touch only
1640/// Atomic-private paths (`.atomic*`): the repository initialization change

Callers 1

switch_transactionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected