Commits


use local variable to save screen estate in got_packidx_open()


wrap overlong lines


turns out on-disk path of pack file may not match its hash Fixes reading a repo with a pack idx and file dated June 2011, where the filename does not contain the actual packfile SHA1.


fix bogus free() in error path of cache_pack()


move got_opentmp* functions to public API; used from tog


offsets in pack files should not make us seek beyond EOF


store fd instead of FILE in struct got_pack to prepare privsep


read object headers with privsep


put a limit on delta chain recursion


wrap long lines


in get_packfile_size(), get errno from stat() and init output early


avoid unnecessary string copies and allocations in get_packfile_size()


we have implemented all object types, switch to better error code


remove debug code accidentally committed


look up deltas in the correct pack file


stop using fmemopen(); that code path didn't work correctly


remove GOT_ERR_NO_MEM, we can just use errno in those cases


rename the library-internal headers again to a common prefix


remove mmap() stuff; checkout is fast enough for now


handle empty files in got_packfile_extract_object()


initialize some output variables on failure


don't dup_packidx() during cache lookup; fixes performance :)


remove unused argument from get_delta_chain_max_size()


extract objects smaller than DELTA_RESULT_SIZE_CACHED_MAX to memory


cache delta data in struct got_delta directly