| 
              
61af9b21
               | 
              
2022-06-28T11:31:11
               | 
              
               | 
              
implement support for commit coloring in got-read-pack for speed
ok op, tracey
               | 
            
            
              
   
               | 
              
3d589bee
               | 
              
2022-06-25T14:54:41
               | 
              
               | 
              
allow start_pack_privsep_child() to be called from outside lib/object.c
               | 
            
            
              
   
               | 
              
57160834
               | 
              
2022-05-31T11:00:09
               | 
              
               | 
              
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
               | 
            
            
              
   
               | 
              
2d9e6abf
               | 
              
2022-05-04T13:43:24
               | 
              
               | 
              
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@
               | 
            
            
              
   
               | 
              
67fd6849
               | 
              
2022-02-13T00:10:25
               | 
              
               | 
              
reuse existing deltas when creating pack files
tested by thomas, naddy, and myself
               | 
            
            
              
   
               | 
              
db696021
               | 
              
2022-01-04T16:11:52
               | 
              
               | 
              
avoid the creation of new temporary files whenever a packed object is read
This speeds up the creation of pack files by about 30%.
               | 
            
            
              
   
               | 
              
c0df5966
               | 
              
2021-12-31T09:33:01
               | 
              
               | 
              
wrap overlong lines
               | 
            
            
              
   
               | 
              
c3564dfa
               | 
              
2021-07-15T07:48:40
               | 
              
               | 
              
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@
               | 
            
            
              
   
               | 
              
aea75d87
               | 
              
2021-07-06T07:57:00
               | 
              
               | 
              
make got_packidx_get_packfile_path() usable for callers who only have a path
               | 
            
            
              
   
               | 
              
136ec6c9
               | 
              
2021-06-22T19:18:55
               | 
              
               | 
              
forward-declare struct got_packidx to make got_lib_pack.h self-contained
               | 
            
            
              
   
               | 
              
c4330eff
               | 
              
2021-06-22T19:11:54
               | 
              
               | 
              
expose got_pack_parse_ref_delta() for library-internal use
This will be needed by a future 'gotadmin listpack' command.
               | 
            
            
              
   
               | 
              
02828bfd
               | 
              
2021-06-22T19:05:05
               | 
              
               | 
              
expose got_packidx_get_object_offset() for library-internal use
This will be needed by a future 'gotadmin listpack' command.
               | 
            
            
              
   
               | 
              
b4f37570
               | 
              
2021-06-19T16:32:39
               | 
              
               | 
              
mark got_pack_stop_privsep_child() static; it is only used inside pack.c
               | 
            
            
              
   
               | 
              
509c9973
               | 
              
2021-04-10T13:11:17
               | 
              
               | 
              
add got_packidx_get_packfile_path() for library-internal use
               | 
            
            
              
   
               | 
              
6d5a9006
               | 
              
2020-12-16T11:16:27
               | 
              
               | 
              
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
               | 
            
            
              
   
               | 
              
00927983
               | 
              
2020-04-19T09:11:37
               | 
              
               | 
              
remove got_packidx_get_object_idx_sha1(); it is not actually needed
               | 
            
            
              
   
               | 
              
d582f26c
               | 
              
2020-03-18T16:13:48
               | 
              
               | 
              
write large objects to disk when resolving deltas; raise in-mem delta threshold
               | 
            
            
              
   
               | 
              
4788f1ce
               | 
              
2020-03-18T16:13:46
               | 
              
               | 
              
extract large objects to a temporary file in got-index-pack
               | 
            
            
              
   
               | 
              
668a20f6
               | 
              
2020-03-18T16:13:41
               | 
              
               | 
              
rewritten got-index-pack; sorry about the monster commit
               | 
            
            
              
   
               | 
              
ca6e02ac
               | 
              
2020-01-07T11:14:52
               | 
              
               | 
              
add support for first-parent history traversal to got-read-pack
               | 
            
            
              
   
               | 
              
5aa81393
               | 
              
2020-01-06T19:38:23
               | 
              
               | 
              
add copyright year for files already touched in 2020
               | 
            
            
              
   
               | 
              
ab2f42e7
               | 
              
2019-11-10T15:51:05
               | 
              
               | 
              
cache delta data buffers in an LRU cache
               | 
            
            
              
   
               | 
              
42c69117
               | 
              
2019-11-10T15:51:05
               | 
              
               | 
              
stop storing decompressed delta data in struct got_delta; fetch it on demand
               | 
            
            
              
   
               | 
              
5e6be232
               | 
              
2019-11-08T21:55:41
               | 
              
               | 
              
fix reading pack files larger than 2GB; ok tb@; problem found by mpi@
               | 
            
            
              
   
               | 
              
dd88155e
               | 
              
2019-06-29T23:26:36
               | 
              
               | 
              
disambiguate abbreviated object IDs based on object type
               | 
            
            
              
   
               | 
              
4277420a
               | 
              
2019-06-29T12:58:30
               | 
              
               | 
              
speed up matching of abbreviated commit IDs in pack files
               | 
            
            
              
   
               | 
              
e09a504c
               | 
              
2019-06-28T20:59:14
               | 
              
               | 
              
introduce support for abbreviated object IDs
               | 
            
            
              
   
               | 
              
ff563a3d
               | 
              
2019-05-23T21:04:23
               | 
              
               | 
              
replace got_pack_get_packfile_size() with simple fstat()
               | 
            
            
              
   
               | 
              
5d56da81
               | 
              
2019-01-13T17:15:53
               | 
              
               | 
              
happy new copyright year
               | 
            
            
              
   
               | 
              
85a703fa
               | 
              
2019-01-13T17:04:03
               | 
              
               | 
              
got_pack_get_object_size() -> got_pack_get_max_delta_object_size()
               | 
            
            
              
   
               | 
              
ac544f8c
               | 
              
2019-01-13T15:58:39
               | 
              
               | 
              
pass smallish blobs directly via imsg buffer
               | 
            
            
              
   
               | 
              
3840f4c9
               | 
              
2018-09-13T00:06:12
               | 
              
               | 
              
fix "rpath" pledge violation in got-read-pack
               | 
            
            
              
   
               | 
              
876c234b
               | 
              
2018-09-10T12:30:47
               | 
              
               | 
              
start reading pack files with privsep; still WIP
               | 
            
            
              
   
               | 
              
7e212e3d
               | 
              
2018-09-09T17:24:46
               | 
              
               | 
              
make got_packfile_extract_object_to_mem() accept pack instead of repo
               | 
            
            
              
   
               | 
              
24140570
               | 
              
2018-09-09T17:19:27
               | 
              
               | 
              
make got_packfile_extract_object() accept a pack instead of a repo
               | 
            
            
              
   
               | 
              
2090a03d
               | 
              
2018-09-09T17:00:33
               | 
              
               | 
              
make got_packfile_open_object() accept a pack instead of a repo
               | 
            
            
              
   
               | 
              
1510f469
               | 
              
2018-09-09T16:33:32
               | 
              
               | 
              
move pack caching code from pack.c to repository.c
               | 
            
            
              
   
               | 
              
817c5a18
               | 
              
2018-09-09T15:50:02
               | 
              
               | 
              
move packidx header initialization to a separate function
               | 
            
            
              
   
               | 
              
d7464085
               | 
              
2018-07-09T15:30:16
               | 
              
               | 
              
read pack files with mmap
               | 
            
            
              
   
               | 
              
0cb74cf4
               | 
              
2018-07-08T19:08:12
               | 
              
               | 
              
don't verify pack index SHA1 upon regular access
               | 
            
            
              
   
               | 
              
57b35b75
               | 
              
2018-06-22T20:12:26
               | 
              
               | 
              
access pack index files with mmap()
               | 
            
            
              
   
               | 
              
6fd11751
               | 
              
2018-06-04T18:02:06
               | 
              
               | 
              
turns out on-disk path of pack file may not match its hash
Fixes reading a repo with a pack idx and file dated June 2011,
where the filename does not contain the actual packfile SHA1.
               | 
            
            
              
   
               | 
              
8b2180d4
               | 
              
2018-04-26T19:47:10
               | 
              
               | 
              
store fd instead of FILE in struct got_pack to prepare privsep
               | 
            
            
              
   
               | 
              
718b3ab0
               | 
              
2018-03-17T17:50:48
               | 
              
               | 
              
rename the library-internal headers again to a common prefix
               |