Commits


convert got_pack' filesize to off_t; ok stsp@


check size before calling mmap(2) It's only a preparatory step, as checking whether a size_t is less than SIZE_MAX is moot. In a follow-up commit, however, the `filesize' field of the struct got_pack will become off_t and these checks will kick in. This also makes consistent how we guard mmap(2) against empty files. ok and improvements stsp@


switch integers used for counting objects while indexing pack files to unsigned


let callers of got_pack_index() configure the rate limit of progress reporting


move pack indexing code into new file lib/pack_index.c Prepares for sharing code between got-index-pack and future gotd(8).


remove trailing whitespace; patch by Josiah Frentsos


convert two snprintf to strlcpy "looks good to me" millert@


convert delta cache to a hash table This approach uses more memory but is much faster. To offset the additional memory usage somewhat the cache now stores very small deltas only. However, overall memory usage goes up. Hopefully we will find a way to reduce this later. ok op@


apply time-based rate-limiting to got-index-pack progress output


plug memory leak in an error path of read_packed_object()


fix wrong function names in error messages from got-index-pack.c


verify object ID checksums while loose objects are being accessed


switch from SIMPLEQ to equivalent STAILQ macros The singly-linked tail queue macros were added to OpenBSD 6.9 and are more widely available on other systems. ok stsp


fix the type of variable 'idx' in update_packidx()


use size_t for loop indices to avoid signedness warnings; by emaste@freebsd Same change as 16aeacf7088d, for subdirectories other than lib/