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

Function describe_remediation

atomic-cli/src/commands/status_git.rs:191–214  ·  view source on GitHub ↗
(remediation: &WorkspaceRemediation)

Source from the content-addressed store, hash-verified

189}
190
191fn describe_remediation(remediation: &WorkspaceRemediation) -> String {
192 match remediation {
193 WorkspaceRemediation::GitOperationInProgress { .. } => {
194 "Git operation in progress".to_string()
195 }
196 WorkspaceRemediation::Unanchored { state, .. } => {
197 format!("workspace is not anchored to a verified Git baseline: {state:?}")
198 }
199 WorkspaceRemediation::OperationHeadsDiverged { heads } => format!(
200 "operation heads diverged: {}",
201 heads
202 .iter()
203 .map(ToString::to_string)
204 .collect::<Vec<_>>()
205 .join(", ")
206 ),
207 WorkspaceRemediation::ConcurrentGitMutation { attempts, .. } => {
208 format!("Git state changed between observations across {attempts} attempt(s)")
209 }
210 WorkspaceRemediation::GitLocksBusy { reason, .. } => {
211 format!("Git-owned transaction in flight ({reason})")
212 }
213 }
214}
215
216fn describe_notices(notices: &[StagingNotice]) -> Vec<String> {
217 let mut output = Vec::new();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected