pub fn read_object_from_pack(idx: &PackIndex, oid: &ObjectId) -> Result<Object>Expand description
Read an object from a pack file by its OID.
Searches the given pack index for the OID, then reads and decompresses the object from the corresponding pack file, resolving delta chains.
ยงErrors
Returns Error::ObjectNotFound if the OID is not in this pack.