Re: [PATCH 3/8] http: refactor subsystem to use `packfile_list`s
From: Patrick Steinhardt <hidden>
Date: 2025-10-30 08:58:39
From: Patrick Steinhardt <hidden>
Date: 2025-10-30 08:58:39
On Wed, Oct 29, 2025 at 03:24:41PM +0100, Toon Claes wrote:
Patrick Steinhardt [off-list ref] writes:diff --git a/packfile.c b/packfile.cquoted
index 4d2d3b674f3..6aa2ca8ac9e 100644--- a/packfile.c +++ b/packfile.c@@ -121,6 +121,15 @@ void packfile_list_append(struct packfile_list *list, struct packed_git *pack) } } +struct packed_git *packfile_list_find_oid(struct packfile_list_entry *packs, + const struct object_id *oid) +{Why does it take a `struct packfile_list_entry` and not a `struct packfile_list` ?
This is because `packfile_store_get_packs()` returns the first entry and not head itself. It makes the interface a bit easier to use going forward. Patrick