summaryrefslogtreecommitdiff
path: root/t/t0110/url-4
diff options
context:
space:
mode:
authorLibravatar Taylor Blau <me@ttaylorr.com>2021-01-13 17:23:47 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-01-13 21:53:45 -0800
commiteb3fd99efd82bc8d199e01634e6fb521d3a27641 (patch)
tree49c56e4f055adb8b7df3cb1650c1f731871e46db /t/t0110/url-4
parentwrite_reused_pack_verbatim(): convert to new revindex API (diff)
downloadtgif-eb3fd99efd82bc8d199e01634e6fb521d3a27641.tar.xz
check_object(): convert to new revindex API
Replace direct accesses to the revindex with calls to 'offset_to_pack_pos()' and 'pack_pos_to_index()'. Since this caller already had some error checking (it can jump to the 'give_up' label if it encounters an error), we can easily check whether or not the provided offset points to an object in the given pack. This error checking existed prior to this patch, too, since the caller checks whether the return value from 'find_pack_revindex()' was NULL or not. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0110/url-4')
0 files changed, 0 insertions, 0 deletions