]> git.ipfire.org Git - thirdparty/git.git/commit
object-file: inline `check_and_freshen()` functions
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Jul 2025 04:56:30 +0000 (06:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2025 05:16:13 +0000 (22:16 -0700)
commitf6638bf55d0c611b86873cc1c88b0dac3bc653e2
treeea2db280eb13e6f67af81757aaed34672b1c6f52
parent931e8c9f5226d855922ab5b0ba04bafe4aa7382f
object-file: inline `check_and_freshen()` functions

The `check_and_freshen()` functions are only used by a single caller
now. Inline them into `freshen_loose_object()`.

While at it, rename `check_and_freshen_odb()` to `_source()` to reflect
that it works on a single object source instead of on the whole database.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c