(
root: &Path,
)
| 2831 | } |
| 2832 | |
| 2833 | pub(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 | |
| 2846 | pub(crate) fn read_workspace_metadata(root: &Path) -> CliResult<Option<ShimCheckpoint>> { |
| 2847 | checkpoint::read_checkpoint(root).map_err(checkpoint_error) |
no test coverage detected