Commits


return error from search_packidx() if dup_packidx() fails


add a pack index cache; speeds tree listing up quite a lot


We don't use a delta combiner, we use delta application. A "delta combiner" (as used in SVN) combines deltas and applies the combined delta to the base. We don't do this yet; we apply deltas one by one.


rename private header filenames so they are in got_ namespace


move struct got_zstream_buf to private header zb.h


read delta data from the right offset


we must store delta's type-and-size length separately to skip it


don't read plain objects to memory during unpack


don't assume objects IDs are sorted by their values in packidx


make got_inflate_read() properly indicate if it needs to be called again


tweak the API which inflates data to a file


implement delta combiner and a small test suite for it


ensure we don't call closedir(NULL) in search_packidx()


rename delta dumping helper function and tweak its parameter list


prepare application of deltas