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

Method put_git_object_id

atomic-core/src/operation/codec.rs:618–624  ·  view source on GitHub ↗
(&mut self, oid: &GitObjectId)

Source from the content-addressed store, hash-verified

616 }
617
618 fn put_git_object_id(&mut self, oid: &GitObjectId) -> Result<(), OperationCodecError> {
619 self.put_u8(match oid.algorithm() {
620 GitHashAlgorithm::Sha1 => 0,
621 GitHashAlgorithm::Sha256 => 1,
622 })?;
623 self.put_bytes(oid.as_bytes())
624 }
625
626 fn put_git_index(&mut self, state: &GitIndexState) -> Result<(), OperationCodecError> {
627 self.put_hash(state.digest)?;

Callers 5

put_git_headMethod · 0.80
put_git_indexMethod · 0.80
put_git_ref_targetMethod · 0.80
put_effect_targetMethod · 0.80
put_effect_valueMethod · 0.80

Calls 4

put_u8Method · 0.80
put_bytesMethod · 0.80
algorithmMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected