]> git.ipfire.org Git - thirdparty/git.git/commit
odb/source-packed: wire up `reprepare()` callback
authorPatrick Steinhardt <ps@pks.im>
Wed, 17 Jun 2026 06:39:50 +0000 (08:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jun 2026 12:00:00 +0000 (05:00 -0700)
commit9ea4ef8586d8fa74bf45c1dd8da2256099abebbd
tree257d5d204d9b6280031e1438e25b124caee289a9
parent4f35c8b060085835150ab605207f6669e58a8d94
odb/source-packed: wire up `reprepare()` callback

Move the logic to prepare and reprepare the "packed" source into
"odb/source-packed.c" and wire it up as the `reprepare()` callback.

Note that "preparing" a source is not yet generic. Eventually, it would
probably make sense to turn the existing `reprepare()` callback into a
`prepare()` callback with an optional flag to force re-preparing. But
this step will be handled in a separate patch series.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/grep.c
midx.c
odb/source-files.c
odb/source-packed.c
odb/source-packed.h
packfile.c
packfile.h