aboutsummaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-12-27 14:52:28 -0800
committerJunio C Hamano <gitster@pobox.com>2023-12-27 14:52:28 -0800
commit94e8e404a7ceaa4cbc34c2406e5dff4b08a49e85 (patch)
treece917e9a9e79ce0e5638a98b911b87ff45fd08c9 /setup.h
parent6db745e1f5ae2ea71f8c7d6b99bf37c8e1a7acfb (diff)
parent18c9cb7524c13ca88ee334a707f281c2e80d5fdf (diff)
downloadgit-94e8e404a7ceaa4cbc34c2406e5dff4b08a49e85.tar.xz
Merge branch 'ps/clone-into-reftable-repository'
"git clone" has been prepared to allow cloning a repository with non-default hash function into a repository that uses the reftable backend. * ps/clone-into-reftable-repository: builtin/clone: create the refdb with the correct object format builtin/clone: skip reading HEAD when retrieving remote builtin/clone: set up sparse checkout later builtin/clone: fix bundle URIs with mismatching object formats remote-curl: rediscover repository when fetching refs setup: allow skipping creation of the refdb setup: extract function to create the refdb
Diffstat (limited to 'setup.h')
-rw-r--r--setup.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup.h b/setup.h
index b48cf1c43b..3f0f17c351 100644
--- a/setup.h
+++ b/setup.h
@@ -169,14 +169,16 @@ int verify_repository_format(const struct repository_format *format,
*/
void check_repository_format(struct repository_format *fmt);
-#define INIT_DB_QUIET 0x0001
-#define INIT_DB_EXIST_OK 0x0002
+#define INIT_DB_QUIET (1 << 0)
+#define INIT_DB_EXIST_OK (1 << 1)
+#define INIT_DB_SKIP_REFDB (1 << 2)
int init_db(const char *git_dir, const char *real_git_dir,
const char *template_dir, int hash_algo,
const char *initial_branch, int init_shared_repository,
unsigned int flags);
void initialize_repository_version(int hash_algo, int reinit);
+void create_reference_database(const char *initial_branch, int quiet);
/*
* NOTE NOTE NOTE!!