Commits


Stop including <sys/syslimits.h> directly. POSIX says the limits defined there are available from <limits.h>, which almost all affected source files already included anyway. ok millert stsp


zap trailing tabs


use the POSIX standard endian functions and explicitly include <endian.h> ok stsp


do not rely on <zlib.h> to pull in <unistd.h> ok stsp


make got-index-pack check the expected pack checksum passed from main process


make got-index-pack compute and verify the pack file's SHA1 checksum


move functions from privsep.c to the helpers which use them where possible


write large objects to disk when resolving deltas; raise in-mem delta threshold


tweak delta cache size in got-index-pack


use qsort(3) instead of mergesort(3) to avoid a large spike in memory usage


write CRC info in one chunk rather than calling write(2) once per object


don't forget to send a final progress notification from got-index-pack


waste less time on sending progress messages over the privsep pipe


jump right to the index of the first delta


document why deltas will usually be resolved within a single loop iteration