]> git.ipfire.org Git - thirdparty/git.git/commit
odb/source-loose: wire up `reprepare()` callback
authorPatrick Steinhardt <ps@pks.im>
Mon, 1 Jun 2026 08:20:27 +0000 (10:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2026 09:47:17 +0000 (18:47 +0900)
commita2b7db9bc8d52f133fe8fcb317788d9fe8696f07
treed29d4b801ab81025cb3a28a5854e2dc93f3c398a
parentead691927b05dbbd2655db9a7183d5fcb935bf3b
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