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

Method branch

atomic-core/src/change/format_v3/semantic/encode.rs:50–52  ·  view source on GitHub ↗
(&mut self, id: BranchId)

Source from the content-addressed store, hash-verified

48 i.write(out, index.into());
49 }
50 fn branch(&mut self, id: BranchId) {
51 self.id(true, id.change_id().get(), id.branch_idx());
52 }
53 fn optional_branch(&mut self, id: Option<BranchId>) {
54 put(&mut self.c.control, u64::from(id.is_some()));
55 if let Some(id) = id {

Callers 2

optional_branchMethod · 0.45
lineMethod · 0.45

Calls 4

branch_idxMethod · 0.80
getMethod · 0.65
idMethod · 0.45
change_idMethod · 0.45

Tested by

no test coverage detected