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

Function unanchored

atomic-repository/src/repository/workspace_txn.rs:1750–1764  ·  view source on GitHub ↗
(
    mode: WorkspaceTxnMode,
    state: UnanchoredWorkspace,
    checkpoint: Option<&WorkspaceCheckpoint>,
    observed: GitHeadObservation,
)

Source from the content-addressed store, hash-verified

1748}
1749
1750fn 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
1766pub(crate) fn read_workspace_checkpoint(
1767 root: &Path,

Callers 1

classify_git_stateFunction · 0.85

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected