Skip to main content

canonical_goal3_tree_bytes

Function canonical_goal3_tree_bytes 

Source
pub fn canonical_goal3_tree_bytes(
    descriptor_blob: &GitSha1ObjectId,
    archive_blob: &GitSha1ObjectId,
) -> Result<Vec<u8>, GitSnapshotError>
Expand description

Construct the valid leaf-tree bytes containing the two fixed snapshot files.

ยงErrors

Returns GitSnapshotError::InvalidTreeEntry if a fixed path or object ID cannot form the canonical Git tree encoding.