(
observation: &GitRepositoryObservation,
atomic: &AtomicAnchorObservation,
)
| 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 { |