aboutsummaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2023-10-01 21:40:25 -0500
committerJunio C Hamano <gitster@pobox.com>2023-10-02 14:57:40 -0700
commit9ae702faf151802f481e68db8d5cb5b536b31c2a (patch)
tree74f5c80e0ecee0ef6edf733fecd332c92ef74294 /setup.h
parent2328ebaa4ef7a921c7021db9e83e122dbe2ac7ad (diff)
downloadgit-9ae702faf151802f481e68db8d5cb5b536b31c2a.tar.xz
repository: implement extensions.compatObjectFormat
Add a configuration option to enable updating and reading from compatibility hash maps when git accesses the reposotiry. Call the helper function repo_set_compat_hash_algo with the value that compatObjectFormat is set to. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'setup.h')
-rw-r--r--setup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup.h b/setup.h
index 58fd2605dd..5d678ceb8c 100644
--- a/setup.h
+++ b/setup.h
@@ -86,6 +86,7 @@ struct repository_format {
int worktree_config;
int is_bare;
int hash_algo;
+ int compat_hash_algo;
int sparse_index;
char *work_tree;
struct string_list unknown_extensions;