Commits
- Commit:
571608344a37fb96f46850a1124415ab68b1a431
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
open temporary files needed for delta application in got_repo_open()
This prepares for callers of got_repo_open() that cannot afford to
open files in /tmp, such as gotwebd. In a follow-up change, we could
ask such callers to pass in the required amount of open temporary files.
One consequence is that got_repo_open() now requires the "cpath" pledge
promise. Add the "cpath" promise to affected callers and remove it once
the repository has been opened.
ok tracey
- Commit:
2d9e6abf243a0a1895786fa9002b28d69a0f6fea
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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@
- Commit:
67fd68496517d3103b130a1085efdd4591bd7416
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
reuse existing deltas when creating pack files
tested by thomas, naddy, and myself
- Commit:
db6960214d9d6517c59f10744fd5a8e62b2ba46a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid the creation of new temporary files whenever a packed object is read
This speeds up the creation of pack files by about 30%.
- Commit:
c0df59665de91324eeab1808c6c4e41343f21789
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
wrap overlong lines
- Commit:
c3564dfafd6bf9ca36c049cf02a1432ce3e66c3f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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@
- Commit:
aea75d87862c3ab54d0b8c5e5e280e13efe8ec4a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got_packidx_get_packfile_path() usable for callers who only have a path
- Commit:
136ec6c982b97cce2847aeba304d9562130f111c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
forward-declare struct got_packidx to make got_lib_pack.h self-contained
- Commit:
c4330effadfe340c07b5709bc805de6a0b3764a7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
expose got_pack_parse_ref_delta() for library-internal use
This will be needed by a future 'gotadmin listpack' command.
- Commit:
02828bfdd5b1fe79298e576b2c28d252509fa089
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
expose got_packidx_get_object_offset() for library-internal use
This will be needed by a future 'gotadmin listpack' command.
- Commit:
b4f3757062b79ae08d3c386051bbf6c37902ec35
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
mark got_pack_stop_privsep_child() static; it is only used inside pack.c
- Commit:
509c99732c4da3e3b74c17d09aba5a38b701716f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_packidx_get_packfile_path() for library-internal use
- Commit:
6d5a9006ab2a400b488b9e93ec9647fb9b2a0930
- From:
- Yang Zhong <yzhong@freebsdfoundation.org>
- Date:
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
- Commit:
0092798358749bb760eb91ae3c53bcaa5d782907
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove got_packidx_get_object_idx_sha1(); it is not actually needed
- Commit:
d582f26ced34c492facade402975ceabe4c97adc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
write large objects to disk when resolving deltas; raise in-mem delta threshold
- Commit:
4788f1cebb9b14790dd4899b6f9007c721eec61e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
extract large objects to a temporary file in got-index-pack
- Commit:
668a20f6fe41d7f9c2f4c32b1ee521bff6d459a8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rewritten got-index-pack; sorry about the monster commit
- Commit:
ca6e02acaa175cf833a3424ff1c4842445c0109f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for first-parent history traversal to got-read-pack
- Commit:
5aa813935b6489921083da5ed9459a1cfb8a03e3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add copyright year for files already touched in 2020
- Commit:
ab2f42e760e128287c5e880a39c591845231922b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
cache delta data buffers in an LRU cache
- Commit:
42c69117cce2e1658d5b5aabbc383ce7252cf167
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
stop storing decompressed delta data in struct got_delta; fetch it on demand
- Commit:
5e6be23258e2648c6ad1bf3b1d5617e827ac3ab6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix reading pack files larger than 2GB; ok tb@; problem found by mpi@
- Commit:
dd88155e484f5bbae1af4e3c8d020cabc2e647ab
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
disambiguate abbreviated object IDs based on object type
- Commit:
4277420a1f45ca37345733120cbe89d19c550f92
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
speed up matching of abbreviated commit IDs in pack files
- Commit:
e09a504cc5b72ff4eca5d539b6fb50c8d01d0036
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce support for abbreviated object IDs