(
root: &Path,
)
| 2787 | } |
| 2788 | |
| 2789 | pub(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 | |
| 2802 | pub(crate) fn read_workspace_metadata(root: &Path) -> CliResult<Option<ShimCheckpoint>> { |
| 2803 | checkpoint::read_checkpoint(root).map_err(checkpoint_error) |
no test coverage detected