Commit Briefs


740bba1c31 Stefan Sperling

allow the delta base file to lose its header between deltify_init and deltify

This simplifies pack file creation. A delta base could be read from a loose object, a packfile, or it might be available in a temporary file. All these cases can now be handled the same way. We may need to open, close, and re-open a given delta base multiple times while packing.


7550e799ee Stefan Sperling

check for errors from emitdelta() in got_deltify()




0d15f6dcf9 Stefan Sperling

in addblk(), only read data into buffer1 if we will compare it to buffer2

suggested by and ok naddy@



a893025fd2 Stefan Sperling

addblk: iterate over the correct number of entries after growing the array

ok naddy


e89540a95a Stefan Sperling

addblk: be more careful about expanding the blocks array when we outgrow it

fixes + ok naddy


51a494da48 Stefan Sperling

check a block's hash as well as its length before expensive comparisons

suggested by + ok naddy, and Ori agrees



22403ab711 Christian Weisgerber

deltify.c: explicitly include <endian.h> for be64toh()



5788893e05 Stefan Sperling

fix off-by-one error in delta length; from ori

git9 commit fbb2fb7c87d8edf58e22c84f575853dc9de79ac4