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

Method update_branch_state

atomic-core/tests/crdt_integration_test.rs:167–172  ·  view source on GitHub ↗
(&mut self, id: BranchId, state: BranchState)

Source from the content-addressed store, hash-verified

165 }
166
167 fn update_branch_state(&mut self, id: BranchId, state: BranchState) -> Result<(), Self::Error> {
168 if let Some(branch) = self.branches.get_mut(&id) {
169 branch.set_state(state);
170 }
171 Ok(())
172 }
173
174 fn list_branches(&self, trunk_id: TrunkId) -> Result<Vec<BranchId>, Self::Error> {
175 Ok(self

Callers

nothing calls this directly

Calls 2

get_mutMethod · 0.80
set_stateMethod · 0.45

Tested by

no test coverage detected