Commits


remove trailing whitespace; patch by Josiah Frentsos


portable: add back sys/queue.h Now that the handling of including sys/queue.h is better, there's no need to remove those lines from the source. Copy the location of those original sys/queue.h lines from upstream at the same line number, so as to avoid any conflicts in the future.


set zlib output buffer length properly after resizing the output buffer ok millert naddy


fix infinite loop in got-index-pack for pack files >= 4GB in size Because of a missing range check our zlib wrapper would end up calling zlib over and over with zero bytes of input. Problem reported by semarie and naddy. Fixed with help from millert@. ok millert naddy


add missing error check in got_inflate_to_mem_mmap()


match the unsigned char type used by the zlib interface ok stsp


portable: add FreeBSD support This adds the capability to compile got-portable on FreeBSD.


portable: initial Linux compilation This commit modifies the GoT main branch to be able to compile it under linux.


indentation fixes


verify object ID checksums while loose objects are being accessed


add checksum parameters to got_inflate functions which did not provide them yet


indentation fixes


zap trailing tabs


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


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


extract large objects to a temporary file in got-index-pack


add mmap support to got-index-pack


do not buffer more data than necessary in got_inflate_to_mem_fd()


fix endless loop from 9c2cfea6 if decompressed data exceeds buffer size


avoid re-reading the entirety of an object's data to calculate the CRC


make output buffer optional for got_inflate_to_mem{,_fd}()


add optional 'consumed' output parameter to got_inflate_to_mem_fd()


add optional 'consumed' output parameter to got_inflate_to_mem()


revert a change to inflate_read() from Ori's patch; it breaks got-read-blob


Add initial support for network protocol. Ported from git9 by Ori Bernstein.