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

Method get_branch

atomic-core/src/crdt/apply/traits.rs:570–572  ·  view source on GitHub ↗
(&self, id: BranchId)

Source from the content-addressed store, hash-verified

568 }
569
570 fn get_branch(&self, id: BranchId) -> Result<Option<Branch>, Self::Error> {
571 Ok(self.branches.get(&id).cloned())
572 }
573
574 fn has_branch(&self, id: BranchId) -> Result<bool, Self::Error> {
575 Ok(self.branches.contains_key(&id))

Callers 2

test_put_and_get_branchFunction · 0.45
test_mark_branch_deletedFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 2

test_put_and_get_branchFunction · 0.36
test_mark_branch_deletedFunction · 0.36