packfile: rename `packfile_store_get_all_packs()`

In a preceding commit we have removed `packfile_store_get_packs()`. With this function removed it's somewhat useless to still have the "all" infix in `packfile_store_get_all_packs()`. Rename the latter to drop that infix. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Oct 9, 2025 at 10:01 UTC ecad863c127cd167647e5929d94627c799587134
4 files changed +7 -7
builtin/fast-import.c
+2 -2
@@ -976,7 +976,7 @@ static int store_object(
976 if (e->idx.offset) {
977 duplicate_count_by_type[type]++;
978 return 1;
979 - } else if (find_oid_pack(&oid, packfile_store_get_all_packs(packs))) {
979 + } else if (find_oid_pack(&oid, packfile_store_get_packs(packs))) {
980 e->type = type;
981 e->pack_id = MAX_PACK_ID;
982 e->idx.offset = 1; /* just not zero! */
@@ -1177,7 +1177,7 @@ static void stream_blob(uintmax_t len, struct object_id *oidout, uintmax_t mark)
1177 duplicate_count_by_type[OBJ_BLOB]++;
1178 truncate_pack(&checkpoint);
1179
1180 - } else if (find_oid_pack(&oid, packfile_store_get_all_packs(packs))) {
1180 + } else if (find_oid_pack(&oid, packfile_store_get_packs(packs))) {
1181 e->type = OBJ_BLOB;
1182 e->pack_id = MAX_PACK_ID;
1183 e->idx.offset = 1; /* just not zero! */
builtin/pack-objects.c
+2 -2
@@ -4394,7 +4394,7 @@ static int has_sha1_pack_kept_or_nonlocal(const struct object_id *oid)
4394 struct packed_git *p;
4395
4396 p = (last_found != (void *)1) ? last_found :
4397 - packfile_store_get_all_packs(packs);
4397 + packfile_store_get_packs(packs);
4398
4399 while (p) {
4400 if ((!p->pack_local || p->pack_keep ||
@@ -4404,7 +4404,7 @@ static int has_sha1_pack_kept_or_nonlocal(const struct object_id *oid)
4404 return 1;
4405 }
4406 if (p == last_found)
4407 - p = packfile_store_get_all_packs(packs);
4407 + p = packfile_store_get_packs(packs);
4408 else
4409 p = p->next;
4410 if (p == last_found)
packfile.c
+1 -1
@@ -1027,7 +1027,7 @@ void packfile_store_reprepare(struct packfile_store *store)
1027 packfile_store_prepare(store);
1028 }
1029
1030 -struct packed_git *packfile_store_get_all_packs(struct packfile_store *store)
1030 +struct packed_git *packfile_store_get_packs(struct packfile_store *store)
1031 {
1032 packfile_store_prepare(store);
1033
packfile.h
+2 -2
@@ -142,13 +142,13 @@ void packfile_store_add_pack(struct packfile_store *store,
142 * repository.
143 */
144 #define repo_for_each_pack(repo, p) \
145 - for (p = packfile_store_get_all_packs(repo->objects->packfiles); p; p = p->next)
145 + for (p = packfile_store_get_packs(repo->objects->packfiles); p; p = p->next)
146
147 /*
148 * Get all packs managed by the given store, including packfiles that are
149 * referenced by multi-pack indices.
150 */
151 -struct packed_git *packfile_store_get_all_packs(struct packfile_store *store);
151 +struct packed_git *packfile_store_get_packs(struct packfile_store *store);
152
153 /*
154 * Get all packs in most-recently-used order.