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

Method optional_branch

atomic-core/src/change/format_v3/semantic/decode.rs:88–94  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

86 Ok(LeafId::new(o, i))
87 }
88 fn optional_branch(&mut self) -> FormatResult<Option<BranchId>> {
89 if self.flag(roles::BRANCH_AFTER)? {
90 Ok(Some(self.branch()?))
91 } else {
92 Ok(None)
93 }
94 }
95 fn bytes(&mut self) -> FormatResult<Vec<u8>> {
96 let tag = self.value(roles::REFERENCE)?;
97 if tag > 2 {

Callers 1

lineMethod · 0.45

Calls 2

flagMethod · 0.45
branchMethod · 0.45

Tested by

no test coverage detected