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

Class Branch

atomic-core/src/crdt/branch.rs:132–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130/// ```
131#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
132pub struct Branch {
133 /// Globally unique identifier for this line.
134 id: BranchId,
135
136 /// The trunk (file) this line belongs to.
137 trunk: TrunkId,
138
139 /// Current lifecycle state.
140 state: BranchState,
141
142 /// Fast content hash for equality checks (FNV-1a).
143 /// This is computed from the line's leaf content.
144 line_hash: u64,
145}
146
147impl Branch {
148 /// FNV-1a offset basis for 64-bit hashes.

Callers 4

branchMethod · 0.85

Calls

no outgoing calls

Tested by 3