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

The `get_packed_git_mru()` function prepares the packfile store and then
returns its packfiles in most-recently-used order. 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>
builtin/pack-objects.c
packfile.c
packfile.h