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

Function hex_oid

atomic-repository/src/repository/tests/resurrection_tests.rs:52–57  ·  view source on GitHub ↗
(oid: &GitObjectId)

Source from the content-addressed store, hash-verified

50}
51
52fn hex_oid(oid: &GitObjectId) -> String {
53 oid.as_bytes()
54 .iter()
55 .map(|byte| format!("{byte:02x}"))
56 .collect()
57}
58
59/// Materialize the projected Git tree objects into a real Git repository and
60/// commit them as one squash-shaped commit; HEAD resolves to it.

Callers 2

newMethod · 0.70

Calls 3

collectMethod · 0.45
iterMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected