[PATCH 11/32] pack: Communicate the compat_oid through struct pack_idx_entry
- From
Eric W. Biederman <ebiederm@xmission.com>
- Date
- Sep 8, 2023, 23:10 UTC
- Message-ID
- <20230908231049.2035003-11-ebiederm@xmission.com>
- In-Reply-To
- <87sf7ol0z3.fsf@email.froward.int.ebiederm.org>
Add compat_oid into struct pack_idx_entry to allow communicating the the compat hash value of the objects being indexed to the code that builds the indexes for a pack.
Having a mechanism that communicates the compat_oid from the code building the pack is necessary for bulk-checkin, fast-import, and index-pack. Only pack-objects could rely on the existing comaptibility mappings, but there is not point since the other creators of indexes can't.
Unfortunately this adds a 4 byte hole into struct pack_idx_entry.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> --- pack.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/pack.h b/pack.h index 3ab9e3f60c0b..321d38374f70 100644 --- a/pack.h +++ b/pack.h @@ -75,6 +75,7 @@ struct pack_idx_header { */ struct pack_idx_entry { struct object_id oid; + struct object_id compat_oid; uint32_t crc32; off_t offset; };
-- 2.41.0