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

Method git_oid

atomic-repository/src/repository/project_tree.rs:1671–1679  ·  view source on GitHub ↗
(&mut self, oid: Option<&GitObjectId>)

Source from the content-addressed store, hash-verified

1669 }
1670 }
1671 fn git_oid(&mut self, oid: Option<&GitObjectId>) {
1672 match oid {
1673 Some(oid) => {
1674 self.u8(algorithm_tag(oid.algorithm()));
1675 self.bytes(oid.as_bytes());
1676 }
1677 None => self.u8(0),
1678 }
1679 }
1680}
1681
1682struct Decoder<'a> {

Callers 1

canonical_bytesMethod · 0.80

Calls 5

algorithm_tagFunction · 0.85
u8Method · 0.80
algorithmMethod · 0.45
bytesMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected