summaryrefslogtreecommitdiff
path: root/pack-bitmap.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2021-01-13 22:23:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-14 05:53:45 (GMT)
commiteb3fd99efd82bc8d199e01634e6fb521d3a27641 (patch)
tree49c56e4f055adb8b7df3cb1650c1f731871e46db /pack-bitmap.c
parent6a5c10c45f110abfef89c978cd8d5f7120f63d48 (diff)
downloadgit-eb3fd99efd82bc8d199e01634e6fb521d3a27641.zip
git-eb3fd99efd82bc8d199e01634e6fb521d3a27641.tar.gz
git-eb3fd99efd82bc8d199e01634e6fb521d3a27641.tar.bz2
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 'pack-bitmap.c')
0 files changed, 0 insertions, 0 deletions