diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-04-18 14:14:33 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-04-18 12:30:43 -0700 |
| commit | 0c473557908ec626e9e8abf66d2f2308624cdd14 (patch) | |
| tree | 7ef432ed0cb0253d9fbbbc3f084e4a3ea596bbff /t/helper/test-read-cache.c | |
| parent | 19fa8cd48c106ded717eeaf145b45e995318f3fe (diff) | |
| download | git-0c473557908ec626e9e8abf66d2f2308624cdd14.tar.gz | |
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 't/helper/test-read-cache.c')
| -rw-r--r-- | t/helper/test-read-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-read-cache.c b/t/helper/test-read-cache.c index 458efa88a6..e803c43ece 100644 --- a/t/helper/test-read-cache.c +++ b/t/helper/test-read-cache.c @@ -9,7 +9,7 @@ int cmd__read_cache(int argc, const char **argv) int i, cnt = 1; const char *name = NULL; - initialize_the_repository(); + initialize_repository(the_repository); if (argc > 1 && skip_prefix(argv[1], "--print-and-refresh=", &name)) { argc--; |
