diff options
| author | Jeff King <peff@peff.net> | 2023-01-07 08:50:53 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-01-08 10:52:55 +0900 |
| commit | c2f32bef9cbed13f21b2308cc3c02158c338f70f (patch) | |
| tree | 193a8744b9eb2e02fd879821ee8535327c3b1f76 /object-file.c | |
| parent | repo_read_object_file(): stop wrapping read_object_file_extended() (diff) | |
| download | git-c2f32bef9cbed13f21b2308cc3c02158c338f70f.tar.gz git-c2f32bef9cbed13f21b2308cc3c02158c338f70f.zip | |
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
