Skip to main content

pack_bytes_to_object_map

Function pack_bytes_to_object_map 

Source
pub fn pack_bytes_to_object_map(
    data: &[u8],
    odb: &Odb,
) -> Result<HashMap<ObjectId, Object>>
Expand description

Parse a pack byte stream and return every resolved object (after delta resolution) keyed by OID.

Does not write to any object database. Used for receive-pack connectivity checks before applying a push to the permanent ODB.

Thin-pack bases may be resolved from odb when they are not present in the pack.