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

Method get_branch

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

Source from the content-addressed store, hash-verified

562 }
563
564 fn get_branch(&self, id: BranchId) -> Result<Option<Branch>, Self::Error> {
565 Ok(self.branches.get(&id).cloned())
566 }
567
568 fn has_branch(&self, id: BranchId) -> Result<bool, Self::Error> {
569 Ok(self.branches.contains_key(&id))

Callers 7

apply_deleteFunction · 0.45
apply_restoreFunction · 0.45
validate_branch_stateFunction · 0.45
validate_branch_parentFunction · 0.45
test_apply_insertFunction · 0.45
test_apply_deleteFunction · 0.45
test_apply_restoreFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 3

test_apply_insertFunction · 0.36
test_apply_deleteFunction · 0.36
test_apply_restoreFunction · 0.36