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

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

As part of the move, `check_and_freshen_source()` is inlined into the
callback function, as it has no other callers anymore.

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