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

Function git_object_hex

atomic-repository/src/repository/operation.rs:4727–4734  ·  view source on GitHub ↗
(object: &GitObjectId)

Source from the content-addressed store, hash-verified

4725}
4726
4727pub(super) fn git_object_hex(object: &GitObjectId) -> Result<String, RepositoryError> {
4728 let hex: String = object
4729 .as_bytes()
4730 .iter()
4731 .map(|byte| format!("{byte:02x}"))
4732 .collect();
4733 Ok(hex)
4734}
4735
4736pub(super) fn git_oid_from_object(
4737 repo: &git2::Repository,

Callers 4

observe_git_object_leaseFunction · 0.85
git_oid_from_objectFunction · 0.85

Calls 3

collectMethod · 0.45
iterMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected