diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-11-03 08:42:03 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-03 12:18:47 -0800 |
| commit | 376016ec71c3a6c883f2ca77a3f1c0245fd60dc2 (patch) | |
| tree | 08054af9332263791881c4f59656a8dab042fa0d /object-file.h | |
| parent | be659c97eae3b68e38b71f0a67067dede23903b5 (diff) | |
| download | git-376016ec71c3a6c883f2ca77a3f1c0245fd60dc2.tar.xz | |
object-file: move loose object map into loose source
The loose object map is used to map from the repository's canonical
object hash to the compatibility hash. As the name indicates, this map
is only used for loose objects, and as such it is tied to a specific
loose object source.
Same as with preceding commits, move this map into the loose object
source accordingly.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-file.h')
| -rw-r--r-- | object-file.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/object-file.h b/object-file.h index bec855e8e5..f8a96a45f5 100644 --- a/object-file.h +++ b/object-file.h @@ -32,6 +32,9 @@ struct odb_source_loose { */ uint32_t subdir_seen[8]; /* 256 bits */ struct oidtree *cache; + + /* Map between object IDs for loose objects. */ + struct loose_object_map *map; }; struct odb_source_loose *odb_source_loose_new(struct odb_source *source); |
