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

Method update_branch_state

atomic-core/src/crdt/apply/leaf.rs:531–540  ·  view source on GitHub ↗
(
            &mut self,
            id: BranchId,
            state: BranchState,
        )

Source from the content-addressed store, hash-verified

529 }
530
531 fn update_branch_state(
532 &mut self,
533 id: BranchId,
534 state: BranchState,
535 ) -> Result<(), Self::Error> {
536 if let Some(branch) = self.branches.get_mut(&id) {
537 branch.set_state(state);
538 }
539 Ok(())
540 }
541
542 fn list_branches(&self, trunk_id: TrunkId) -> Result<Vec<BranchId>, Self::Error> {
543 Ok(self

Callers

nothing calls this directly

Calls 2

get_mutMethod · 0.80
set_stateMethod · 0.45

Tested by

no test coverage detected