summaryrefslogtreecommitdiff
path: root/contrib/hooks/update-paranoid
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2020-02-23 23:37:31 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-02-24 12:55:53 -0800
commit6ac9760a30683a24e80a7aefe30e383046e810f0 (patch)
treec1cb67476879ddda783e6a8df7a43344f4253841 /contrib/hooks/update-paranoid
parentpacked_object_info(): use object_id for returning delta base (diff)
downloadtgif-6ac9760a30683a24e80a7aefe30e383046e810f0.tar.xz
packed_object_info(): use object_id internally for delta base
The previous commit changed the public interface of packed_object_info() to return a struct object_id rather than a bare hash. That enables us to convert our internal helper, as well. We can use nth_packed_object_id() directly for OFS_DELTA, but we'll still have to use oidread() to pull the hash for a REF_DELTA out of the packfile. There should be no additional cost, since we're copying directly into the object_id the caller provided us (just as we did before; it's just happening now via nth_packed_object_id()). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/hooks/update-paranoid')
0 files changed, 0 insertions, 0 deletions