]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: split out packfile list logic
authorPatrick Steinhardt <ps@pks.im>
Wed, 17 Jun 2026 06:39:45 +0000 (08:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jun 2026 12:00:00 +0000 (05:00 -0700)
commitcf86a18ac3b4e49f49c2c19351de109064999827
tree98a5c2472b6b475d018f9f6d25a40810d2c1aacf
parente2fb4ba003dac9c71b78b997fb90aac10c11c2df
packfile: split out packfile list logic

In the next commit we're about to introduce the "packed" object database
source. This source will embed a packfile list, and consequently we'll
have to include "packfile.h" to make the struct definition available.
This will unfortunately lead to a cyclic dependency that we cannot
resolve with a forward declaration.

Split out the code that relates to the packfile list into a separate
compilation unit so that both "packfile.h" and "odb/source-packed.h" can
include it.

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