summaryrefslogtreecommitdiff
path: root/range-diff.h
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2020-12-07 14:11:05 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-12-07 12:32:04 -0800
commita5f1c448998fba5f5a1b00e1b9a779176ec665a6 (patch)
tree7bd3a7a74515c250dec924ceed5087e370eb7dce /range-diff.h
parentcommit-graph: drop count_distinct_commits() function (diff)
downloadtgif-a5f1c448998fba5f5a1b00e1b9a779176ec665a6.tar.xz
commit-graph: replace packed_oid_list with oid_array
Our custom packed_oid_list data structure is really just an oid_array in disguise. Let's switch to using the generic structure, which shortens and simplifies the code slightly. There's one slightly awkward part: in the old code we copied a hash straight from the mmap'd on-disk data into the final object_id. And now we'll copy to a temporary oid, which we'll then pass to oid_array_append(). But this is an operation we have to do all over the commit-graph code already, since it mostly uses object_id structs internally. I also measured "git commit-graph --append", which triggers this code path, and it showed no difference. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'range-diff.h')
0 files changed, 0 insertions, 0 deletions