Creates a new branch with a pre-computed hash.
(id: BranchId, trunk: TrunkId, line_hash: u64)
| 163 | |
| 164 | /// Creates a new branch with a pre-computed hash. |
| 165 | pub fn with_hash(id: BranchId, trunk: TrunkId, line_hash: u64) -> Self { |
| 166 | Branch { |
| 167 | id, |
| 168 | trunk, |
| 169 | state: BranchState::Alive, |
| 170 | line_hash, |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | /// Returns the branch's unique identifier. |
| 175 | #[inline] |
nothing calls this directly
no outgoing calls
no test coverage detected