summaryrefslogtreecommitdiffstats
path: root/repository.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-04-18 14:14:33 +0200
committerJunio C Hamano <gitster@pobox.com>2024-04-18 21:30:43 +0200
commit0c473557908ec626e9e8abf66d2f2308624cdd14 (patch)
tree7ef432ed0cb0253d9fbbbc3f084e4a3ea596bbff /repository.h
parentrepository: drop `the_index` variable (diff)
downloadgit-0c473557908ec626e9e8abf66d2f2308624cdd14.tar.xz
git-0c473557908ec626e9e8abf66d2f2308624cdd14.zip
repository: drop `initialize_the_repository()`
Now that we have dropped `the_index`, `initialize_the_repository()` doesn't really do a lot anymore except for setting up the pointer for `the_repository` and then calling `initialize_repository()`. The former can be replaced by statically initializing the pointer though, which basically makes this function moot. Convert callers to instead call `initialize_repository(the_repository)` and drop `initialize_thee_repository()`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repository.h')
-rw-r--r--repository.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/repository.h b/repository.h
index 6f4af15417..41ed22543a 100644
--- a/repository.h
+++ b/repository.h
@@ -207,7 +207,7 @@ void repo_set_worktree(struct repository *repo, const char *path);
void repo_set_hash_algo(struct repository *repo, int algo);
void repo_set_compat_hash_algo(struct repository *repo, int compat_algo);
void repo_set_ref_storage_format(struct repository *repo, unsigned int format);
-void initialize_the_repository(void);
+void initialize_repository(struct repository *repo);
RESULT_MUST_BE_USED
int repo_init(struct repository *r, const char *gitdir, const char *worktree);