Skip to main content

canonical_root_tree_bytes

Function canonical_root_tree_bytes 

Source
pub fn canonical_root_tree_bytes(
    rustferry_tree: &GitSha1ObjectId,
) -> Result<Vec<u8>, GitSnapshotError>
Expand description

Construct the valid root tree containing only .rustferry.

ยงErrors

Returns GitSnapshotError::InvalidTreeEntry if the object cannot form a canonical entry.