summaryrefslogtreecommitdiffstats
path: root/object-store-ll.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2023-10-02 04:40:09 +0200
committerJunio C Hamano <gitster@pobox.com>2023-10-02 23:57:38 +0200
commit23b2c7e95b6f8f3045665835d2dc5028701eff18 (patch)
treeffc99ac1e4307004da2e31947e6806de3259319a /object-store-ll.h
parentrepository: add a compatibility hash algorithm (diff)
downloadgit-23b2c7e95b6f8f3045665835d2dc5028701eff18.tar.xz
git-23b2c7e95b6f8f3045665835d2dc5028701eff18.zip
loose: add a mapping between SHA-1 and SHA-256 for loose objects
As part of the transition plan, we'd like to add a file in the .git directory that maps loose objects between SHA-1 and SHA-256. Let's implement the specification in the transition plan and store this data on a per-repository basis in struct repository. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-store-ll.h')
-rw-r--r--object-store-ll.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/object-store-ll.h b/object-store-ll.h
index 26a3895c82..bc76d6bec8 100644
--- a/object-store-ll.h
+++ b/object-store-ll.h
@@ -26,6 +26,9 @@ struct object_directory {
uint32_t loose_objects_subdir_seen[8]; /* 256 bits */
struct oidtree *loose_objects_cache;
+ /* Map between object IDs for loose objects. */
+ struct loose_object_map *loose_map;
+
/*
* This is a temporary object store created by the tmp_objdir
* facility. Disable ref updates since the objects in the store