diff options
author | Jeff King <peff@peff.net> | 2020-12-07 14:11:05 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-07 12:32:04 -0800 |
commit | a5f1c448998fba5f5a1b00e1b9a779176ec665a6 (patch) | |
tree | 7bd3a7a74515c250dec924ceed5087e370eb7dce /t/t4034-diff-words.sh | |
parent | commit-graph: drop count_distinct_commits() function (diff) | |
download | tgif-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 't/t4034-diff-words.sh')
0 files changed, 0 insertions, 0 deletions