summaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-05-19 11:52:20 +0200
committerJunio C Hamano <gitster@pobox.com>2026-05-19 19:36:25 +0900
commit779fbcd9ebe8590e13ecd072d2e37dcbebd86ce5 (patch)
tree8e43e34ba98b5801e9c7f2c0ae23b5977b58e94c /setup.h
parent602254dfb032b47349076132ab07dd3951aa2c3d (diff)
setup: stop using `the_repository` in `initialize_repository_version()`
Stop using `the_repository` in `initialize_repository_version()` and instead accept the repository as a parameter. The injection of `the_repository` is thus bumped one level higher, where callers now pass it in explicitly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'setup.h')
-rw-r--r--setup.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.h b/setup.h
index a820041af0..c33b675ccf 100644
--- a/setup.h
+++ b/setup.h
@@ -232,7 +232,8 @@ int init_db(const char *git_dir, const char *real_git_dir,
enum ref_storage_format ref_storage_format,
const char *initial_branch, int init_shared_repository,
unsigned int flags);
-void initialize_repository_version(int hash_algo,
+void initialize_repository_version(struct repository *repo,
+ int hash_algo,
enum ref_storage_format ref_storage_format,
int reinit);
void create_reference_database(const char *initial_branch, int quiet);