(
mode: WorkspaceTxnMode,
state: UnanchoredWorkspace,
checkpoint: Option<&WorkspaceCheckpoint>,
observed: GitHeadObservation,
)
| 1748 | } |
| 1749 | |
| 1750 | fn unanchored( |
| 1751 | mode: WorkspaceTxnMode, |
| 1752 | state: UnanchoredWorkspace, |
| 1753 | checkpoint: Option<&WorkspaceCheckpoint>, |
| 1754 | observed: GitHeadObservation, |
| 1755 | ) -> WorkspaceRemediation { |
| 1756 | WorkspaceRemediation::Unanchored { |
| 1757 | mode, |
| 1758 | state, |
| 1759 | plan: WorkspaceEntryPlan::blocked( |
| 1760 | checkpoint.map(|checkpoint| checkpoint.git_head.clone()), |
| 1761 | observed, |
| 1762 | ), |
| 1763 | } |
| 1764 | } |
| 1765 | |
| 1766 | pub(crate) fn read_workspace_checkpoint( |
| 1767 | root: &Path, |
no test coverage detected