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

Function read_checkpoint_observation

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

Source from the content-addressed store, hash-verified

2831}
2832
2833pub(crate) fn read_checkpoint_observation(
2834 root: &Path,
2835) -> CliResult<Option<ShimCheckpointObservation>> {
2836 read_workspace_metadata(root).map(|checkpoint| {
2837 checkpoint.map(|checkpoint| ShimCheckpointObservation {
2838 view: checkpoint.view,
2839 atomic_state: checkpoint.atomic_state,
2840 git_head: checkpoint.git_head,
2841 git_tree: checkpoint.git_tree,
2842 })
2843 })
2844}
2845
2846pub(crate) fn read_workspace_metadata(root: &Path) -> CliResult<Option<ShimCheckpoint>> {
2847 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