diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-05-19 11:52:20 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-05-19 19:36:25 +0900 |
| commit | 779fbcd9ebe8590e13ecd072d2e37dcbebd86ce5 (patch) | |
| tree | 8e43e34ba98b5801e9c7f2c0ae23b5977b58e94c /setup.h | |
| parent | 602254dfb032b47349076132ab07dd3951aa2c3d (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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
