Expand description
unpack-objects: unpack a pack stream into loose objects.
Reads a pack-format byte stream, validates the trailing checksum, and
writes each object as a loose file in the object database. Delta objects
(both OFS_DELTA and REF_DELTA) are resolved against already-unpacked
objects or objects already present in the ODB.
Large blobs are written to the ODB and dropped from the in-memory maps so cloning multi-gigabyte repositories does not require holding the full pack in RAM (streaming read + bounded retention).
Structs§
- Unpack
Options - Options controlling
unpack-objectsbehaviour.
Functions§
- apply_
delta - Apply a git “patch delta” to
base, producing the patched result. - pack_
bytes_ to_ object_ map - Parse a pack byte stream and return every resolved object (after delta resolution) keyed by OID.
- strict_
verify_ packed_ references - Verifies that references from commits, trees, and tags resolve to objects present in
packor, whenodbisSome, to loose objects in that database. - unpack_
objects - Unpack a pack stream from
readerintoodb.