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

Method list_branches

atomic-core/src/crdt/apply/traits.rs:600–606  ·  view source on GitHub ↗
(&self, trunk_id: TrunkId)

Source from the content-addressed store, hash-verified

598 }
599
600 fn list_branches(&self, trunk_id: TrunkId) -> Result<Vec<BranchId>, Self::Error> {
601 Ok(self
602 .trunk_branches
603 .get(&trunk_id)
604 .cloned()
605 .unwrap_or_default())
606 }
607
608 fn count_branches(&self, trunk_id: TrunkId) -> Result<usize, Self::Error> {
609 Ok(self.trunk_branches.get(&trunk_id).map_or(0, |v| v.len()))

Callers 1

test_list_branchesFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 1

test_list_branchesFunction · 0.36