Commits


make got_pack_create() write to a file descriptor instead of a stdio FILE The old code required a seekable output file. This conflicts with requirements of future gotd(8), which will write pack file data to network sockets. ok op@


store deltas in compressed form while packing, both in memory and cache file This reduces memory and disk space consumption during packing. with tweaks + memleak on error fix from op@ ok op@


compress delta data from delta_cache directly into pack file


map raw object files into memory while packing if possible


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


simplify deflate checksumming code; fixes errors with upcoming 'gotadmin pack' tweak + ok naddy


add checksum support to got_deflate_to_file() This will eventually be used by 'gotadmin pack'. Checksum init and finalization will need to be done by the caller since many objects will be written out in compressed form while we are computing checksums across the entire pack file. ok millert, naddy


add some initial code for zlib compression