Commits


avoid the creation of new temporary files whenever a packed object is read This speeds up the creation of pack files by about 30%.


wrap overlong lines


don't scan pack index offsets for large values if pack file is < 2GB This saves an iteration over the entire h->offsets array when opening a pack index which should not contain large offsets in the first place. ok millert@


make got_packidx_get_packfile_path() usable for callers who only have a path


forward-declare struct got_packidx to make got_lib_pack.h self-contained


expose got_pack_parse_ref_delta() for library-internal use This will be needed by a future 'gotadmin listpack' command.


expose got_packidx_get_object_offset() for library-internal use This will be needed by a future 'gotadmin listpack' command.


mark got_pack_stop_privsep_child() static; it is only used inside pack.c


add got_packidx_get_packfile_path() for library-internal use


add fd field to got_repository, modify got_packidx_open to use fds These changes are intended to make got more compatible with FreeBSD's Capsicum. ok stsp


remove got_packidx_get_object_idx_sha1(); it is not actually needed


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


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


rewritten got-index-pack; sorry about the monster commit


add support for first-parent history traversal to got-read-pack