]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: refactor `get_all_packs()` to work on packfile store
authorPatrick Steinhardt <ps@pks.im>
Tue, 23 Sep 2025 10:17:13 +0000 (12:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Sep 2025 18:53:51 +0000 (11:53 -0700)
commitd2779beb36ff64eb062103db14006f7ae6da5f37
tree45f56f67f53b9c957f62af0855a9b826cc978c73
parent751808b2a18acba76b824aed4d8b7442bd7f5fca
packfile: refactor `get_all_packs()` to work on packfile store

The `get_all_packs()` 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>
18 files changed:
builtin/cat-file.c
builtin/count-objects.c
builtin/fast-import.c
builtin/fsck.c
builtin/gc.c
builtin/pack-objects.c
builtin/pack-redundant.c
builtin/repack.c
connected.c
http-backend.c
http.c
pack-bitmap.c
pack-objects.c
packfile.c
packfile.h
server-info.c
t/helper/test-find-pack.c
t/helper/test-pack-mtimes.c