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

Function checkpoint_for

atomic-cli/src/commands/git/observation.rs:1566–1576  ·  view source on GitHub ↗
(
        observation: &GitRepositoryObservation,
        atomic: &AtomicAnchorObservation,
    )

Source from the content-addressed store, hash-verified

1564 }
1565
1566 fn checkpoint_for(
1567 observation: &GitRepositoryObservation,
1568 atomic: &AtomicAnchorObservation,
1569 ) -> ShimCheckpointObservation {
1570 ShimCheckpointObservation {
1571 view: atomic.view.clone(),
1572 atomic_state: atomic.state.clone(),
1573 git_head: observation.head.oid().expect("head oid").to_string(),
1574 git_tree: observation.head_tree_oid.expect("head tree").to_string(),
1575 }
1576 }
1577
1578 #[derive(Debug, Eq, PartialEq)]
1579 enum SnapshotValue {

Calls 2

cloneMethod · 0.45
oidMethod · 0.45