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

Method get_branch

atomic-core/tests/crdt_integration_test.rs:148–150  ·  view source on GitHub ↗
(&self, id: BranchId)

Source from the content-addressed store, hash-verified

146 }
147
148 fn get_branch(&self, id: BranchId) -> Result<Option<Branch>, Self::Error> {
149 Ok(self.branches.get(&id).cloned())
150 }
151
152 fn has_branch(&self, id: BranchId) -> Result<bool, Self::Error> {
153 Ok(self.branches.contains_key(&id))

Callers 1

Calls 1

getMethod · 0.65

Tested by

no test coverage detected