6 years ago 2178c42edf Stefan Sperling
read object headers with privsep
6 years ago 5b7e13a71f Stefan Sperling
put a limit on delta chain recursion
6 years ago dfb54902d3 Stefan Sperling
wrap long lines
6 years ago 97128b573c Stefan Sperling
in get_packfile_size(), get errno from stat() and init output early
6 years ago 1c7e24f180 Stefan Sperling
avoid unnecessary string copies and allocations in get_packfile_size()
6 years ago 4810de4a31 Stefan Sperling
we have implemented all object types, switch to better error code
6 years ago 16dcbf911a Stefan Sperling
remove debug code accidentally committed
6 years ago 72eb343178 Stefan Sperling
look up deltas in the correct pack file
6 years ago 040bf4a150 Stefan Sperling
stop using fmemopen(); that code path didn't work correctly
6 years ago 0a585a0d64 Stefan Sperling
remove GOT_ERR_NO_MEM, we can just use errno in those cases
6 years ago 718b3ab0e3 Stefan Sperling
rename the library-internal headers again to a common prefix
6 years ago 4589e373ff Stefan Sperling
remove mmap() stuff; checkout is fast enough for now
6 years ago 0bd0053c34 Stefan Sperling
handle empty files in got_packfile_extract_object()
6 years ago d0f3be7ced Stefan Sperling
initialize some output variables on failure
6 years ago 6bb255dc42 Stefan Sperling
don't dup_packidx() during cache lookup; fixes performance :)
6 years ago 40426839c0 Stefan Sperling
remove unused argument from get_delta_chain_max_size()
6 years ago c52ac529dc Stefan Sperling
extract objects smaller than DELTA_RESULT_SIZE_CACHED_MAX to memory
6 years ago a53d2f1379 Stefan Sperling
cache delta data in struct got_delta directly
6 years ago 6d89869a98 Stefan Sperling
use cached packfile in open_packed_object()
6 years ago 999f19f65e Stefan Sperling
use cached packfile in resolve_ref_delta()
6 years ago e1ad6ebcf6 Stefan Sperling
remove path_packfile from struct got_delta_cache; add a counter instead
6 years ago f7e127f30c Stefan Sperling
move delta cache into struct got_pack
6 years ago 7e656b930d Stefan Sperling
add struct got_pack; some preparation for mmap, which isn't used yet
6 years ago b29656e27e Stefan Sperling
set obj->size of packed deltified objects to object's actual size
6 years ago 65cf1e8015 Stefan Sperling
revert the pack file handle cache again; needs more thought