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

Function hex_oid

atomic-repository/src/repository/projection_commit.rs:669–674  ·  view source on GitHub ↗
(oid: &GitObjectId)

Source from the content-addressed store, hash-verified

667}
668
669pub(super) fn hex_oid(oid: &GitObjectId) -> String {
670 oid.as_bytes()
671 .iter()
672 .map(|byte| format!("{byte:02x}"))
673 .collect()
674}
675
676#[cfg(test)]
677mod tests {

Callers 1

write_raw_git_objectFunction · 0.70

Calls 3

collectMethod · 0.45
iterMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected