diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-09-23 12:17:12 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-09-24 11:53:51 -0700 |
| commit | 751808b2a18acba76b824aed4d8b7442bd7f5fca (patch) | |
| tree | 7c9e46f82e6bc1e3422373947303344b303cb6c1 /builtin | |
| parent | ab8aff4a6b2a1d5aa79deeb64bdeecc0234b4ddf (diff) | |
| download | git-751808b2a18acba76b824aed4d8b7442bd7f5fca.tar.xz | |
packfile: refactor `get_packed_git()` to work on packfile store
The `get_packed_git()` function prepares the packfile store and then
returns its packfiles. Refactor it to accept a packfile store instead of
a repository to clarify its scope.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/gc.c | 2 | ||||
| -rw-r--r-- | builtin/grep.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/builtin/gc.c b/builtin/gc.c index aeca06a08b..ec6735a540 100644 --- a/builtin/gc.c +++ b/builtin/gc.c @@ -1423,7 +1423,7 @@ static int incremental_repack_auto_condition(struct gc_config *cfg UNUSED) if (incremental_repack_auto_limit < 0) return 1; - for (p = get_packed_git(the_repository); + for (p = packfile_store_get_packs(the_repository->objects->packfiles); count < incremental_repack_auto_limit && p; p = p->next) { if (!p->multi_pack_index) diff --git a/builtin/grep.c b/builtin/grep.c index 5df6537333..63a4959568 100644 --- a/builtin/grep.c +++ b/builtin/grep.c @@ -1214,7 +1214,7 @@ int cmd_grep(int argc, if (recurse_submodules) repo_read_gitmodules(the_repository, 1); if (startup_info->have_repository) - (void)get_packed_git(the_repository); + (void)packfile_store_get_packs(the_repository->objects->packfiles); start_threads(&opt); } else { |
