thodg/got/lib/pack.c

Branch :


Log

Author Commit Date CI Message
0adc7bcc 2019-06-29 23:28:23 call got_object_id_queue_free() instead of implementing it inline
dd88155e 2019-06-29 23:26:36 disambiguate abbreviated object IDs based on object type
4277420a 2019-06-29 12:58:30 speed up matching of abbreviated commit IDs in pack files
e09a504c 2019-06-28 20:59:14 introduce support for abbreviated object IDs
ff563a3d 2019-05-23 21:04:23 replace got_pack_get_packfile_size() with simple fstat()
57377f07 2019-05-23 14:50:57 stat .idx file to determine its size, not the .pack file
1a35c1bc 2019-05-22 11:48:27 fix double-frees in error path when resolving deltas fails
638f9024 2019-05-13 12:40:57 rename got_error_prefix_errno() to got_error_from_errno()
230a42bd 2019-05-11 13:04:38 got_error_from_errno -> got_error_prefix_errno also add got_error_prefix_errno2 and got_error_prefix_errno3 which should hopefully all be merged into a single function with variadic args (but can't alloc mem)
324d37e7 2019-05-11 09:14:30 make got path APIs available to library consumers
0dd5271b 2019-05-10 19:57:25 plug fd leak in got_pack_stop_privsep_child()
a5b57ccf 2019-04-11 13:37:50 omit unused mode argument to open(2)
3a11398b 2019-02-21 14:15:33 more specific mmap(2) failure checks
5ea74b5a 2019-02-11 14:20:09 don't close input files in dump_delta_chain_to_file(); caller does it
3a6ce05a 2019-02-11 12:32:53 check for errors from close(2)
fb43ecf1 2019-02-11 11:59:09 check for errors from fclose()
5d56da81 2019-01-13 17:15:53 happy new copyright year
85a703fa 2019-01-13 17:04:03 got_pack_get_object_size() -> got_pack_get_max_delta_object_size()
ac544f8c 2019-01-13 15:58:39 pass smallish blobs directly via imsg buffer
15a94983 2018-12-23 14:48:47 remove struct got_object from public library API
96732e0b 2018-11-11 15:05:43 fix error handling in got_pack_stop_privsep_child()
34fca9c3 2018-11-11 11:10:11 bounds checks before memcpy in got_delta_apply_in_mem()
106807b4 2018-09-15 20:57:10 make object caching actually work in got-read-pack
faaa1c0f 2018-09-15 20:05:47 handle errors from read(2) better while reading pack files
3840f4c9 2018-09-13 00:06:12 fix "rpath" pledge violation in got-read-pack
c59b3346 2018-09-11 12:29:46 stop sending deltas in imsg; cache deltas in got-read-pack
876c234b 2018-09-10 12:30:47 start reading pack files with privsep; still WIP
40cf7208 2018-09-09 17:26:34 remove unused includes from pack.c
7e212e3d 2018-09-09 17:24:46 make got_packfile_extract_object_to_mem() accept pack instead of repo
24140570 2018-09-09 17:19:27 make got_packfile_extract_object() accept a pack instead of a repo
2090a03d 2018-09-09 17:00:33 make got_packfile_open_object() accept a pack instead of a repo
1510f469 2018-09-09 16:33:32 move pack caching code from pack.c to repository.c
35c73765 2018-09-09 16:14:11 make open_packed_object() expect a pack instead of a repo
a98c62b1 2018-09-09 16:09:01 remove unused parameter of open_delta_object()
2ce68b2f 2018-09-09 16:07:11 don't redundantly open pack file in dump_delta_chain_to_file()
48095039 2018-09-09 16:03:39 don't open pack redundantly in dump_delta_chain_to_mem()
c8ecd499 2018-09-09 16:00:41 remove unused parameter from functions resolving packfile deltas
4fb0d740 2018-09-09 15:57:26 remove unused parameter of open_packfile()
4a9c75d9 2018-09-09 15:56:38 remove unused parameter of get_packfile_path()
3413160a 2018-09-09 15:55:40 remove unused parameter of get_object_idx()
817c5a18 2018-09-09 15:50:02 move packidx header initialization to a separate function
c336f889 2018-07-23 10:53:49 don't store copies of packfile paths in each delta
673702af 2018-07-23 10:37:54 fix leak in dump_delta_chain_to_file()
ab3ad429 2018-07-23 10:34:33 fix leaks in resolve_offset_delta()
3efa19e7 2018-07-13 10:51:34 fix more memleaks
e8f89a81 2018-07-13 10:38:31 only unmap map if non-NULL in got_pack_close()
45202a8f 2018-07-11 20:57:44 fix reading ref deltas
63581804 2018-07-09 22:23:00 rename zbuf to inflate
fc79a48d 2018-07-09 17:00:51 add a compile time switch to read pack index with read(2)
af9b7fee 2018-07-09 16:32:39 add compile-time switch which disables mmap for pack files
57363308 2018-07-09 16:20:48 fall back to read() as intended if mapping packfile fails
d7464085 2018-07-09 15:30:16 read pack files with mmap
0cb74cf4 2018-07-08 19:08:12 don't verify pack index SHA1 upon regular access
b0e2201a 2018-06-22 21:15:24 simplify more code which assumed deltas could span mulitple packs
49847196 2018-06-22 20:56:40 wrap overlong lines
652b2703 2018-06-22 20:43:22 only search one pack file while resolving deltas
57b35b75 2018-06-22 20:12:26 access pack index files with mmap()
49c99f91 2018-06-22 20:09:05 don't needlessly copy packidx when caching it
40aeb19c 2018-06-22 13:03:45 use binary search to find objects in pack index
56cca8e5 2018-06-04 20:54:13 use macro instead of literal ".pack"
72fb0363 2018-06-04 20:53:30 use macro instead of literal ".idx"
d475dd0d 2018-06-04 20:52:43 use strlcpy instead of strncpy
4738e5f4 2018-06-04 20:46:09 remove unnecessary forward declaration
c8262310 2018-06-04 18:11:39 use local variable to save screen estate in got_packidx_open()
0b48ab23 2018-06-04 18:06:47 wrap overlong lines
6fd11751 2018-06-04 18: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.
f5feadcc 2018-06-04 16:22:01 fix bogus free() in error path of cache_pack()
511a516b 2018-05-19 16:57:12 move got_opentmp* functions to public API; used from tog
0c048b15 2018-04-27 11:25:46 offsets in pack files should not make us seek beyond EOF
8b2180d4 2018-04-26 19:47:10 store fd instead of FILE in struct got_pack to prepare privsep
2178c42e 2018-04-22 14:51:49 read object headers with privsep
5b7e13a7 2018-04-02 12:46:33 put a limit on delta chain recursion
dfb54902 2018-04-02 11:45:31 wrap long lines
97128b57 2018-04-02 10:09:22 in get_packfile_size(), get errno from stat() and init output early
1c7e24f1 2018-04-02 10:05:35 avoid unnecessary string copies and allocations in get_packfile_size()
4810de4a 2018-04-01 23:16:35 we have implemented all object types, switch to better error code
16dcbf91 2018-04-01 15:59:36 remove debug code accidentally committed
72eb3431 2018-04-01 15:57:43 look up deltas in the correct pack file
040bf4a1 2018-04-01 14:43:53 stop using fmemopen(); that code path didn't work correctly
0a585a0d 2018-03-17 18:13:19 remove GOT_ERR_NO_MEM, we can just use errno in those cases
718b3ab0 2018-03-17 17:50:48 rename the library-internal headers again to a common prefix
4589e373 2018-03-17 15:41:39 remove mmap() stuff; checkout is fast enough for now
0bd0053c 2018-03-17 15:31:18 handle empty files in got_packfile_extract_object()
d0f3be7c 2018-03-17 15:17:14 initialize some output variables on failure
6bb255dc 2018-03-17 15:12:44 don't dup_packidx() during cache lookup; fixes performance :)
40426839 2018-03-17 15:05:06 remove unused argument from get_delta_chain_max_size()
c52ac529 2018-03-17 15:01:36 extract objects smaller than DELTA_RESULT_SIZE_CACHED_MAX to memory
a53d2f13 2018-03-17 14:19:13 cache delta data in struct got_delta directly
6d89869a 2018-03-17 03:35:04 use cached packfile in open_packed_object()
999f19f6 2018-03-17 02:36:20 use cached packfile in resolve_ref_delta()
e1ad6ebc 2018-03-17 02:12:34 remove path_packfile from struct got_delta_cache; add a counter instead
f7e127f3 2018-03-17 02:02:32 move delta cache into struct got_pack
7e656b93 2018-03-17 01:37:48 add struct got_pack; some preparation for mmap, which isn't used yet
b29656e2 2018-03-16 23:05:12 set obj->size of packed deltified objects to object's actual size
65cf1e80 2018-03-16 22:33:22 revert the pack file handle cache again; needs more thought
ef2bccd9 2018-03-16 22:14:51 stop opening pack files redundantly to read deltas
6845d284 2018-03-16 21:40:20 use SEEK_SET instead of SEEK_CUR after opening packfile
87c99799 2018-03-16 21:26:06 start caching file handles to packfiles
ea35256b 2018-03-16 19:27:48 avoid a round-trip via tempfile when reading packed commits
40dc5ff8 2018-03-16 19:22:22 rename a function for clarity