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

Function git_object_hex

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

Source from the content-addressed store, hash-verified

4721}
4722
4723pub(super) fn git_object_hex(object: &GitObjectId) -> Result<String, RepositoryError> {
4724 let hex: String = object
4725 .as_bytes()
4726 .iter()
4727 .map(|byte| format!("{byte:02x}"))
4728 .collect();
4729 Ok(hex)
4730}
4731
4732pub(super) fn git_oid_from_object(
4733 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