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

Method evaluate_trust

atomic-repository/src/repository/resurrection.rs:825–840  ·  view source on GitHub ↗
(
        &self,
        binding: &GitStateBinding,
    )

Source from the content-addressed store, hash-verified

823 }
824
825 fn evaluate_trust(
826 &self,
827 binding: &GitStateBinding,
828 ) -> crate::git_binding::BindingTrustEvaluation {
829 let config = atomic_config::RepoConfig::load(&self.root.join(".atomic/config.toml"))
830 .unwrap_or_default();
831 let repository_identity = config.author.as_ref().and_then(|a| a.identity.as_deref());
832 evaluate_binding_trust(
833 binding,
834 &config.git.trust,
835 crate::git_binding::BindingVerificationInput {
836 repository_identity,
837 },
838 true,
839 )
840 }
841
842 /// Complete the closure (CB-6B) and re-validate it over the local store.
843 fn acquire_closure(

Callers 2

Calls 2

evaluate_binding_trustFunction · 0.85
as_refMethod · 0.80

Tested by

no test coverage detected