diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2008-07-13 22:07:46 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-15 06:36:49 -0700 |
commit | 03993e139cafd04c3783902243328442a5b4aa2c (patch) | |
tree | 3feac0189888fd1513f4e699d3d735a9040351f2 /compat/pread.c | |
parent | index-pack: Chain the struct base_data on the stack for traversal (diff) | |
download | tgif-03993e139cafd04c3783902243328442a5b4aa2c.tar.xz |
index-pack: Track the object_entry that creates each base_data
If we free the data stored within a base_data we need the struct
object_entry to get the data back again for use with another dependent
delta. Storing the object_entry* in base_data makes it simple to call
get_data_from_pack() to recover the compressed information.
This however means that we must add the missing base object to the end of
our packfile prior to calling resolve_delta() on each of the dependent
deltas. Adding the base first ensures we can read the base back from the
pack we are indexing, as if it had been included by the remote side.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/pread.c')
0 files changed, 0 insertions, 0 deletions