diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2023-10-01 21:40:10 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-10-02 14:57:38 -0700 |
commit | a2d923fb0d07e2518c2d692c53f0e1d83baa1604 (patch) | |
tree | f30d62c0dd59cd560c021d24a40b98f3b57d00ae /commit.c | |
parent | 23b2c7e95b6f8f3045665835d2dc5028701eff18 (diff) |
loose: compatibilty short name support
Update loose_objects_cache when udpating the loose objects map. This
oidtree is used to discover which oids are possibilities when
resolving short names, and it can support a mixture of sha1
and sha256 oids.
With this any oid recorded objects/loose-objects-idx is usable
for resolving an oid to an object.
To make this maintainable a helper insert_loose_map is factored
out of load_one_loose_object_map and repo_add_loose_object_map,
and then modified to also update the loose_objects_cache.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions