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

Method alloc_branch

atomic-core/src/diff/semantic_to_crdt.rs:254–258  ·  view source on GitHub ↗

Allocate a new branch ID.

(&mut self)

Source from the content-addressed store, hash-verified

252
253 /// Allocate a new branch ID.
254 fn alloc_branch(&mut self) -> BranchId {
255 let id = BranchId::new(self.change_id, self.next_branch);
256 self.next_branch += 1;
257 id
258 }
259
260 /// Allocate a new leaf ID.
261 fn alloc_leaf(&mut self) -> LeafId {

Callers 3

convert_added_lineMethod · 0.80
convert_deleted_lineMethod · 0.80
convert_modified_lineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected