diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-01-09 09:33:17 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-09 06:40:07 -0800 |
| commit | a593373b097322adc74aa5f9614c7650f87ebed9 (patch) | |
| tree | f18677a1b2d09d7adc531735f4447217bda704e2 /contrib/persistent-https | |
| parent | 6acefa0d2ca0fd95461b19026917d09210032b3d (diff) | |
| download | git-a593373b097322adc74aa5f9614c7650f87ebed9.tar.gz git-a593373b097322adc74aa5f9614c7650f87ebed9.zip | |
packfile: refactor `find_pack_entry()` to work on the packfile store
The function `find_pack_entry()` doesn't work on a specific packfile
store, but instead works on the whole repository. This causes a bit of a
conceptual mismatch in its callers:
- `packfile_store_freshen_object()` supposedly acts on a store, and
its callers know to iterate through all sources already.
- `packfile_store_read_object_info()` behaves likewise.
The only exception that doesn't know to handle iteration through sources
is `has_object_pack()`, but that function is trivial to adapt.
Refactor the code so that `find_pack_entry()` works on the packfile
store level instead.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
