]> Kevux Git Server - rit/commit
odb/source-loose: move loose source into "odb/" subsystem
authorPatrick Steinhardt <ps@pks.im>
Mon, 1 Jun 2026 08:20:24 +0000 (10:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2026 09:47:17 +0000 (18:47 +0900)
commit514f039c9052c23047c310f911ba8c0c2e74a1c7
treea2c5082f1d3e7c41b44af2354b41844de4b0ce69
parent9ebc19b76065f71a2f09d85b59e53615c5dc3633
odb/source-loose: move loose source into "odb/" subsystem

In subsequent patches we'll be turning `struct odb_source_loose` into a
proper `struct odb_source`. As a first step towards this goal, move its
struct out of "object-file.c" and into "odb/source-loose.c".

This detaches the implementation of the loose object source from the
generic object file code, following the same convention already used by
the "files" and "in-memory" sources.

No functional changes are intended.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
meson.build
object-file.c
object-file.h
odb/source-loose.c [new file with mode: 0644]
odb/source-loose.h [new file with mode: 0644]