]> git.99rst.org Git - git.git/commit
packfile: thread odb_source_packed through packed_object_info()
authorPatrick Steinhardt <redacted>
Thu, 2 Jul 2026 12:01:59 +0000 (14:01 +0200)
committerJunio C Hamano <redacted>
Thu, 2 Jul 2026 16:52:32 +0000 (09:52 -0700)
commit11c689b8730e0927ef9fc73eea59270318b3177d
treed33a005cf196821cabe58839c5f353b014e84a49
parent2ed34f72cf957f70b5919afac2f5e7aa2563c573
packfile: thread odb_source_packed through packed_object_info()

Add an optional `struct odb_source_packed *source` parameter to
`packed_object_info()` and `packed_object_info_with_index_pos()`. This
parameter is unused at this point in time, but it will be used in a
follow-up commit so that we can record the source of a specific object.

Note that callers in "odb/source-packed.c" pass the already-available
source, but all other callers pass `NULL` instead. This is fine though,
as we only care about populating this info when called via the packed
store.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/cat-file.c
builtin/pack-objects.c
commit-graph.c
odb/source-packed.c
pack-bitmap.c
packfile.c
packfile.h
t/helper/test-bitmap.c
git clone https://git.99rst.org/PROJECT