Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
669
pub(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)]
677
mod tests {
Callers
1
write_raw_git_object
Function · 0.70
Calls
3
collect
Method · 0.45
iter
Method · 0.45
as_bytes
Method · 0.45
Tested by
no test coverage detected