]> Kevux Git Server - rit/commit
odb: introduce "files" source
authorPatrick Steinhardt <ps@pks.im>
Thu, 5 Mar 2026 14:19:42 +0000 (15:19 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Mar 2026 19:45:14 +0000 (11:45 -0800)
commitcb506a8a69c953f7b87bb3ae099e0bed8218d3ab
tree2b469f6c020f5fc1889a01754ed99443085eeb61
parentba1c21d34346e5979f9308806274bfcda4949ad4
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>
20 files changed:
Makefile
builtin/cat-file.c
builtin/fast-import.c
builtin/grep.c
builtin/index-pack.c
builtin/pack-objects.c
commit-graph.c
http.c
loose.c
meson.build
midx.c
object-file.c
odb.c
odb/source-files.c [new file with mode: 0644]
odb/source-files.h [new file with mode: 0644]
odb/source.c
odb/source.h
odb/streaming.c
packfile.c
packfile.h