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

Method git_oid

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

Source from the content-addressed store, hash-verified

1687 }
1688 }
1689 fn git_oid(&mut self, oid: Option<&GitObjectId>) {
1690 match oid {
1691 Some(oid) => {
1692 self.u8(algorithm_tag(oid.algorithm()));
1693 self.bytes(oid.as_bytes());
1694 }
1695 None => self.u8(0),
1696 }
1697 }
1698}
1699
1700struct 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