Expand description
Unpack loose objects from pack streams.
Structs§
- Ingested
Objects - Objects a pack stream delivered into an object store, from
ingest_pack_into. - Pack
Index Record - Resolved
(oid, pack_offset)pairs for every object slot in a pack byte stream. - Unpack
Options - Options controlling
unpack-objectsbehaviour.
Functions§
- apply_
delta - Apply a git “patch delta” to
base, producing the patched result. - apply_
delta_ into - Apply
deltaontobase, reusingoutstorage (cleared first, capacity grown as needed). - ingest_
pack_ into - Apply a pack stream to any
WritableObjectStore, resolving every delta. - ingest_
pack_ into_ with_ progress - Like
ingest_pack_into, reportingProgressPhase::IndexingObjectsandProgressPhase::ResolvingDeltasonprogressand stopping withError::Cancelledoncecancelfires. - pack_
bytes_ to_ object_ map - Parse a pack byte stream and return every resolved object (after delta resolution) keyed by OID.
- pack_
index_ records_ from_ bytes - Build index records using the repository’s default parallelism (
pack.threadswhen unset). - pack_
index_ records_ with_ threads - Build index records with an explicit worker thread count (
None/0→ available CPUs). - pack_
index_ records_ with_ threads_ with_ progress - Like
pack_index_records_with_threads, reporting indexing and delta resolution progress onprogresswhen provided. - pack_
is_ thin - Whether
datais a thin pack — i.e. it contains aref-delta(type 7) whose base object is not itself present in the pack.git pack-objects --thinproduces such packs; a receiver that rejects thin packs (receive-pack --reject-thin-pack-for-testing) uses this to refuse them. - 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.