summaryrefslogtreecommitdiff
path: root/line-range.h
diff options
context:
space:
mode:
authorLibravatar Jonathan Tan <jonathantanmy@google.com>2020-08-24 12:16:36 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-08-24 14:12:58 -0700
commitb4718cae51f9630f2901c452ca4e4dfbf68f47ef (patch)
tree63770b43d6a8008f144cbb99ef8b1d540e4b76ef /line-range.h
parentindex-pack: remove redundant child field (diff)
downloadtgif-b4718cae51f9630f2901c452ca4e4dfbf68f47ef.tar.xz
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 'line-range.h')
0 files changed, 0 insertions, 0 deletions