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>
This commit is contained in:
brian m. carlson
2023-10-01 21:40:25 -05:00
committed by Junio C Hamano
parent 2328ebaa4e
commit 9ae702faf1
4 changed files with 35 additions and 3 deletions

View File

@@ -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;