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

Function git2_oid

atomic-repository/src/git_binding/verify.rs:180–184  ·  view source on GitHub ↗
(oid: &GitOid)

Source from the content-addressed store, hash-verified

178}
179
180fn git2_oid(oid: &GitOid) -> Result<git2::Oid, BindingVerificationError> {
181 git2::Oid::from_bytes(oid.as_bytes()).map_err(|error| BindingVerificationError::Git {
182 message: error.to_string(),
183 })
184}
185
186/// Verification failures: the binding does not match the Git object database.
187#[derive(Debug, thiserror::Error)]

Callers 1

verify_binding_contentFunction · 0.70

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected