Skip to main content

reconstruct_tree

Function reconstruct_tree 

Source
pub fn reconstruct_tree(
    body: &[u8],
    resolve: &impl Fn(&Sha1Id) -> Option<Hash>,
) -> Result<Reconstructed, BridgeError>
Expand description

§9 tree rule. resolve maps a child git id back to the BLAKE3 of the already-reconstructed child (bottom-up order is the caller’s job).