aboutsummaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-03-05 15:19:42 +0100
committerJunio C Hamano <gitster@pobox.com>2026-03-05 11:45:14 -0800
commitcb506a8a69c953f7b87bb3ae099e0bed8218d3ab (patch)
tree2b469f6c020f5fc1889a01754ed99443085eeb61 /http.c
parentba1c21d34346e5979f9308806274bfcda4949ad4 (diff)
downloadgit-cb506a8a69c953f7b87bb3ae099e0bed8218d3ab.tar.xz
odb: introduce "files" source
Introduce a new "files" object database source. This source encapsulates access to both loose object files and the packfile store, similar to how the "files" backend for refs encapsulates access to loose refs and the packed-refs file. Note that for now the "files" source is still a direct member of a `struct odb_source`. This architecture will be reversed in the next commit so that the files source contains a `struct odb_source`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index 7815f144de..b44f493919 100644
--- a/http.c
+++ b/http.c
@@ -2544,7 +2544,7 @@ void http_install_packfile(struct packed_git *p,
struct packfile_list *list_to_remove_from)
{
packfile_list_remove(list_to_remove_from, p);
- packfile_store_add_pack(the_repository->objects->sources->packfiles, p);
+ packfile_store_add_pack(the_repository->objects->sources->files->packed, p);
}
struct http_pack_request *new_http_pack_request(