summaryrefslogtreecommitdiffstats
path: root/diffcore-pickaxe.c
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2020-08-24 21:16:36 +0200
committerJunio C Hamano <gitster@pobox.com>2020-08-24 23:12:58 +0200
commitb4718cae51f9630f2901c452ca4e4dfbf68f47ef (patch)
tree63770b43d6a8008f144cbb99ef8b1d540e4b76ef /diffcore-pickaxe.c
parentindex-pack: remove redundant child field (diff)
downloadgit-b4718cae51f9630f2901c452ca4e4dfbf68f47ef.tar.xz
git-b4718cae51f9630f2901c452ca4e4dfbf68f47ef.zip
index-pack: calculate {ref,ofs}_{first,last} early
This is refactoring 2 of 2 to simplify struct base_data. Whenever we make a struct base_data, immediately calculate its delta children. This eliminates confusion as to when the {ref,ofs}_{first,last} fields are initialized. Before this patch, the delta children were calculated at the last possible moment. This allowed the members of struct base_data to be populated in any order, superficially useful when we have the object contents before the struct object_entry. But this makes reasoning about the state of struct base_data more complicated, hence this patch. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-pickaxe.c')
0 files changed, 0 insertions, 0 deletions