(remediation: &WorkspaceRemediation)
| 189 | } |
| 190 | |
| 191 | fn 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 | |
| 216 | fn describe_notices(notices: &[StagingNotice]) -> Vec<String> { |
| 217 | let mut output = Vec::new(); |
nothing calls this directly
no outgoing calls
no test coverage detected