summaryrefslogtreecommitdiff
path: root/pack-write.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-02-02 10:06:51 -0800
committerJunio C Hamano <gitster@pobox.com>2011-02-27 23:29:03 -0800
commit7218a215efc7ae46f7ca8d82442f354e7ac06262 (patch)
treee06c293bc3c3c7de9dc73e34eef742024a9dd3be /pack-write.c
parent8978166e531e0941811099d4117574ebbbcf35d8 (diff)
downloadgit-7218a215efc7ae46f7ca8d82442f354e7ac06262.tar.gz
index-pack: group the delta-base array entries also by type
Entries in the delta_base array are only grouped by the bytepattern in the delta_base union, some of which have 20-byte object name of the base object (i.e. base for REF_DELTA objects), while others have sizeof(off_t) bytes followed by enough NULs to fill 20-byte. The loops to iterate through a range inside this array still needs to inspect the type of the delta, and skip over false hits. Group the entries also by type to eliminate the potential of false hits. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-write.c')
0 files changed, 0 insertions, 0 deletions