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

Function refuse

atomic-cli/src/commands/git/guard.rs:831–848  ·  view source on GitHub ↗
(
    operation: GuardOperation,
    reason: GuardRefusalReason,
    drift_fields: Vec<DriftField>,
    old: Option<GuardEvidence>,
    current: &GuardEvidence,
)

Source from the content-addressed store, hash-verified

829}
830
831fn refuse(
832 operation: GuardOperation,
833 reason: GuardRefusalReason,
834 drift_fields: Vec<DriftField>,
835 old: Option<GuardEvidence>,
836 current: &GuardEvidence,
837) -> GuardOutcome {
838 let remediation = remediation(reason, old.as_ref(), current);
839 GuardOutcome::Refuse(Box::new(GuardRefusal {
840 operation,
841 reason,
842 drift_fields,
843 old,
844 current: current.clone(),
845 remediation,
846 recovery: None,
847 }))
848}
849
850fn remediation(
851 reason: GuardRefusalReason,

Callers 3

classify_guardFunction · 0.85
sandbox_entry_pathFunction · 0.85
materialize_prefixFunction · 0.85

Calls 3

remediationFunction · 0.85
as_refMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected