summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLibravatar Xin Li <delphij@google.com>2020-06-05 02:10:01 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-06-05 10:13:30 -0700
commit16af5f1abb2b3291f96a248698449c48c6a0ec36 (patch)
treed8bae1f1b88f0b6b6717b19de757075c90b2b1b4 /cache.h
parentGit 2.27-rc2 (diff)
downloadtgif-16af5f1abb2b3291f96a248698449c48c6a0ec36.tar.xz
repository: add a helper function to perform repository format upgrade
In version 1 of repository format, "extensions" gained special meaning and it is safer to avoid upgrading when there are pre-existing extensions. Make list-objects-filter to use the helper function instead of setting repository version directly as a prerequisite of exposing the upgrade capability. Signed-off-by: Xin Li <delphij@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 0f0485ecfe..e5885cc9ea 100644
--- a/cache.h
+++ b/cache.h
@@ -1042,6 +1042,7 @@ struct repository_format {
int worktree_config;
int is_bare;
int hash_algo;
+ int has_extensions;
char *work_tree;
struct string_list unknown_extensions;
};