| 130 | /// ``` |
| 131 | #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] |
| 132 | pub 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 | |
| 147 | impl Branch { |
| 148 | /// FNV-1a offset basis for 64-bit hashes. |
no outgoing calls