]> git.ipfire.org Git - thirdparty/git.git/commit - packfile.c
packfile: inline custom read_object()
authorJeff King <peff@peff.net>
Sat, 7 Jan 2023 13:50:53 +0000 (08:50 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Jan 2023 01:52:55 +0000 (10:52 +0900)
commitc2f32bef9cbed13f21b2308cc3c02158c338f70f
tree193a8744b9eb2e02fd879821ee8535327c3b1f76
parent0ba05cf2e0d077bedbc1ee2521b3e5b5dc883250
packfile: inline custom read_object()

When the pack code was split into its own file[1], it got a copy of the
static read_object() function. But there's only one caller here, so we
could just inline it. And it's worth doing so, as the name read_object()
invites comparisons to the public read_object_file(), but the two don't
behave quite the same.

[1] The move happened over several commits, but the relevant one here is
    f1d8130be0 (pack: move clear_delta_base_cache(), packed_object_info(),
    unpack_entry(), 2017-08-18).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
packfile.c