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

Method alloc_branch_id

atomic-core/src/record/workflow/crdt/builder/mod.rs:307–312  ·  view source on GitHub ↗

Allocates a new branch ID.

(&mut self)

Source from the content-addressed store, hash-verified

305
306 /// Allocates a new branch ID.
307 pub(crate) fn alloc_branch_id(&mut self) -> BranchId {
308 let id = BranchId::new(self.change_id, self.next_branch_idx);
309 self.next_branch_idx += 1;
310 self.last_branch_id = Some(id);
311 id
312 }
313
314 /// Allocates a new leaf ID.
315 pub(crate) fn alloc_leaf_id(&mut self) -> LeafId {

Callers 3

add_lineMethod · 0.45
add_line_with_contentMethod · 0.45
add_file_with_contentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected