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

Method read_git_ref_observation

atomic-core/src/operation/codec.rs:1291–1299  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1289 }
1290
1291 fn read_git_ref_observation(&mut self) -> Result<GitRefObservation, OperationCodecError> {
1292 let name = self.read_string("Git ref name")?;
1293 let target = if self.read_optional_tag("Git ref target")? {
1294 Some(self.read_git_ref_target()?)
1295 } else {
1296 None
1297 };
1298 Ok(GitRefObservation { name, target })
1299 }
1300
1301 fn read_actor(&mut self) -> Result<ActorRef, OperationCodecError> {
1302 match self.read_u8()? {

Callers 1

decode_operationFunction · 0.80

Calls 3

read_optional_tagMethod · 0.80
read_git_ref_targetMethod · 0.80
read_stringMethod · 0.45

Tested by

no test coverage detected