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

Function hex_oid

atomic-repository/src/repository/resurrection.rs:1482–1487  ·  view source on GitHub ↗

Lowercase hex of a core-tagged Git object id.

(oid: &atomic_core::operation::GitObjectId)

Source from the content-addressed store, hash-verified

1480
1481/// Lowercase hex of a core-tagged Git object id.
1482fn hex_oid(oid: &atomic_core::operation::GitObjectId) -> String {
1483 oid.as_bytes()
1484 .iter()
1485 .map(|byte| format!("{byte:02x}"))
1486 .collect()
1487}
1488
1489/// The verified `(sha, change hash)` rows of `GIT_SHA_INDEX` and the SHAs
1490/// whose rows failed validation.

Callers

nothing calls this directly

Calls 3

collectMethod · 0.45
iterMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected