]> git.ipfire.org Git - thirdparty/git.git/commit - pack-bitmap.c
get_size_by_pos(): convert to new revindex API
authorTaylor Blau <me@ttaylorr.com>
Wed, 13 Jan 2021 22:24:00 +0000 (17:24 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Jan 2021 05:53:46 +0000 (21:53 -0800)
commita78a90324d1c5ccba2ab46cb70573518dd6eeade
tree541ee2d79cd56c952d6ddd52b834a04a0e1526a8
parentcf98f2e8e09416b72bf984af4706c140de8794ab
get_size_by_pos(): convert to new revindex API

Remove another caller that holds onto a 'struct revindex_entry' by
replacing the direct indexing with calls to 'pack_pos_to_offset()' and
'pack_pos_to_index()'.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-bitmap.c