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

Method update_branch_state

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

Source from the content-addressed store, hash-verified

581 }
582
583 fn update_branch_state(
584 &mut self,
585 id: BranchId,
586 state: BranchState,
587 ) -> Result<(), Self::Error> {
588 if let Some(branch) = self.branches.get_mut(&id) {
589 branch.set_state(state);
590 }
591 Ok(())
592 }
593
594 fn list_branches(&self, trunk_id: TrunkId) -> Result<Vec<BranchId>, Self::Error> {
595 Ok(self

Callers 2

apply_deleteFunction · 0.45
apply_restoreFunction · 0.45

Calls 2

get_mutMethod · 0.80
set_stateMethod · 0.45

Tested by

no test coverage detected