]> git.ipfire.org Git - thirdparty/git.git/commit
odb/source-loose: wire up `reprepare()` callback
authorPatrick Steinhardt <ps@pks.im>
Thu, 21 May 2026 08:22:24 +0000 (10:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 May 2026 13:35:19 +0000 (22:35 +0900)
commit3b10fea35563f1bb3bdbdbe55d79cbfc244958a7
treec586f48caab6348eb848506bf0007cc81632920f
parent30b310e7921a9944fa49c6bf8bd7cd84a9eb4abe
odb/source-loose: wire up `reprepare()` callback

Move `odb_source_loose_reprepare()` from "object-file.c" into
"odb/source-loose.c" and wire it up as the `reprepare()` callback of the
loose source.

While at it, make `odb_source_loose_clear_cache()` static, as it is no
longer needed outside of its file.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c
object-file.h
odb/source-files.c
odb/source-loose.c
odb/source-loose.h