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

Function read_checkpoint_observation

atomic-cli/src/commands/git/shim.rs:2789–2800  ·  view source on GitHub ↗
(
    root: &Path,
)

Source from the content-addressed store, hash-verified

2787}
2788
2789pub(crate) fn read_checkpoint_observation(
2790 root: &Path,
2791) -> CliResult<Option<ShimCheckpointObservation>> {
2792 read_workspace_metadata(root).map(|checkpoint| {
2793 checkpoint.map(|checkpoint| ShimCheckpointObservation {
2794 view: checkpoint.view,
2795 atomic_state: checkpoint.atomic_state,
2796 git_head: checkpoint.git_head,
2797 git_tree: checkpoint.git_tree,
2798 })
2799 })
2800}
2801
2802pub(crate) fn read_workspace_metadata(root: &Path) -> CliResult<Option<ShimCheckpoint>> {
2803 checkpoint::read_checkpoint(root).map_err(checkpoint_error)

Callers 1

print_forensic_statusFunction · 0.85

Calls 1

read_workspace_metadataFunction · 0.85

Tested by

no test coverage detected