diff options
author | Jeff King <peff@peff.net> | 2023-01-07 16:50:53 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-01-08 04:52:55 +0300 |
commit | c2f32bef9cbed13f21b2308cc3c02158c338f70f (patch) | |
tree | 193a8744b9eb2e02fd879821ee8535327c3b1f76 /object-file.c | |
parent | 0ba05cf2e0d077bedbc1ee2521b3e5b5dc883250 (diff) |
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>
Diffstat (limited to 'object-file.c')
0 files changed, 0 insertions, 0 deletions