]> Kevux Git Server - rit/commit
object-file: extract function to read object info from path
authorPatrick Steinhardt <ps@pks.im>
Mon, 26 Jan 2026 09:51:19 +0000 (10:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jan 2026 16:26:06 +0000 (08:26 -0800)
commit6ecab3cdf67012592734ed9493db634d39326d43
tree3f8253a562ccf6766f4f4e609d47e37fba631157
parent6358da200fffc7f010f079c3f64ed77f10cd751d
object-file: extract function to read object info from path

Extract a new function that allows us to read object info for a specific
loose object via a user-supplied path. This function will be used in a
subsequent commit.

Note that this also allows us to drop `stat_loose_object()`, which is
a simple wrapper around `odb_loose_path()` plus lstat(3p).

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