aboutsummaryrefslogtreecommitdiffstats
path: root/packfile.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-28Merge branch 'eb/hash-transition'Junio C Hamano1-1/+2
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-10-02tree-walk: init_tree_desc take an oid to get the hash algorithmEric W. Biederman1-1/+2
2023-08-04Merge branch 'jc/retire-get-sha1-hex'Junio C Hamano1-1/+1
2023-07-25Merge branch 'tb/object-access-overflow-protection'Junio C Hamano1-7/+8
2023-07-24hex: retire get_sha1_hex()Junio C Hamano1-1/+1
2023-07-14packfile.c: use checked arithmetic in `nth_packed_object_offset()`Taylor Blau1-4/+5
2023-07-14packfile.c: prevent overflow in `load_idx()`Taylor Blau1-1/+1
2023-07-12packfile.c: prevent overflow in `nth_packed_object_id()`Taylor Blau1-2/+2
2023-07-05git-compat-util: move alloc macros to git-compat-util.hCalvin Wan1-1/+0
2023-07-05treewide: remove unnecessary includes for wrapper.hCalvin Wan1-1/+0
2023-06-29Merge branch 'en/header-split-cache-h-part-3'Junio C Hamano1-1/+1
2023-06-29Merge branch 'ds/remove-idx-before-pack'Junio C Hamano1-1/+1
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
2023-06-20packfile: delete .idx files before .pack filesDerrick Stolee1-1/+1
2023-05-09Merge branch 'en/header-split-cache-h-part-2'Junio C Hamano1-1/+1
2023-04-27Merge branch 'tb/pack-revindex-on-disk'Junio C Hamano1-1/+1
2023-04-24treewide: remove cache.h inclusion due to previous changesElijah Newren1-1/+1
2023-04-13pack-revindex: make `load_pack_revindex` take a repositoryTaylor Blau1-1/+1
2023-04-11object-file.h: move declarations for object-file.c functions from cache.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on pack-revindex.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on trace.h & trace2.hElijah Newren1-0/+1
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-1/+4
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-1/+1
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-1/+1
2023-03-28cocci: apply the "promisor-remote.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-21csum-file.h: remove unnecessary inclusion of cache.hElijah Newren1-1/+1
2023-03-21environment.h: move declarations for environment.c functions from cache.hElijah Newren1-0/+1
2023-03-21wrapper.h: move declarations for wrapper.c functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-03-19Merge branch 'ds/reprepare-alternates-when-repreparing-packfiles'Junio C Hamano1-0/+10
2023-03-17Merge branch 'jk/unused-post-2.39-part2'Junio C Hamano1-2/+2
2023-03-09object-file: reprepare alternates when necessaryDerrick Stolee1-0/+10
2023-02-24for_each_object: mark unused callback parametersJeff King1-2/+2
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2023-02-23alloc.h: move ALLOC_GROW() functions from cache.hElijah Newren1-1/+2
2023-01-08packfile: inline custom read_object()Jeff King1-17/+9
2022-09-14Merge branch 'ab/unused-annotation'Junio C Hamano1-1/+1
2022-09-14Merge branch 'jk/unused-annotation'Junio C Hamano1-1/+1
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-1/+1
2022-08-25Merge branch 'jk/is-promisor-object-keep-tree-in-use'Junio C Hamano1-2/+13
2022-08-19hashmap: mark unused callback parametersJeff King1-1/+1
2022-08-18Merge branch 'jk/fsck-tree-mode-bits-fix'Junio C Hamano1-1/+1
2022-08-14is_promisor_object(): fix use-after-free of tree bufferJeff King1-2/+13
2022-08-10tree-walk: add a mechanism for getting non-canonicalized modesJeff King1-1/+1
2022-08-03Merge branch 'rs/mergesort'Junio C Hamano1-15/+3
2022-07-17packfile: use DEFINE_LIST_SORTRené Scharfe1-15/+3
2022-07-11Merge branch 'jk/optim-promisor-object-enumeration'Junio C Hamano1-1/+2
2022-06-16is_promisor_object(): walk promisor packs in pack-orderJeff King1-1/+2
2022-06-03Merge branch 'tb/cruft-packs'Junio C Hamano1-2/+17
2022-05-26pack-mtimes: support reading .mtimes filesTaylor Blau1-2/+17
2022-05-02Merge branch 'ep/maint-equals-null-cocci' for maint-2.35Junio C Hamano1-1/+1
2022-05-02tree-wide: apply equals-null.cocciJunio C Hamano1-1/+1
2022-01-12Merge branch 'jt/pack-header-lshift-overflow'Junio C Hamano1-1/+1
2022-01-12packfile: fix off-by-one error in decoding logicJunio C Hamano1-1/+1
2021-12-15Merge branch 'tb/pack-revindex-on-disk-cleanup'Junio C Hamano1-1/+2
2021-12-10Merge branch 'jt/pack-header-lshift-overflow'Junio C Hamano1-1/+1
2021-12-04packfile: make `close_pack_revindex()` staticTaylor Blau1-1/+2
2021-11-29Merge branch 'mc/clean-smudge-with-llp64'Junio C Hamano1-3/+3
2021-11-11packfile: avoid overflowing shift during decodeJonathan Tan1-1/+1
2021-11-03odb: guard against data loss checking out a huge fileMatt Cooper1-3/+3
2021-10-03Merge branch 'rs/close-pack-leakfix'Junio C Hamano1-0/+1
2021-09-24packfile: release bad_objects in close_pack()René Scharfe1-0/+1
2021-09-23Merge branch 'rs/packfile-bad-object-list-in-oidset'Junio C Hamano1-27/+11
2021-09-20Merge branch 'tb/multi-pack-bitmaps'Junio C Hamano1-1/+1
2021-09-12packfile: use oidset for bad objectsRené Scharfe1-22/+6
2021-09-12packfile: convert has_packed_and_bad() to object_idRené Scharfe1-2/+2
2021-09-12packfile: convert mark_bad_packed_object() to object_idRené Scharfe1-6/+6
2021-09-01pack-bitmap: read multi-pack bitmapsTaylor Blau1-1/+1
2021-08-29object-store.h: teach for_each_packed_object to ignore kept packsTaylor Blau1-0/+6
2021-06-29xmmap: inform Linux users of tuning knobs on ENOMEMEric Wong1-2/+2
2021-05-20Merge branch 'en/dir-traversal'Junio C Hamano1-4/+1
2021-05-13dir: introduce readdir_skip_dot_and_dotdot() helperElijah Newren1-4/+1
2021-04-13is_promisor_object(): free tree buffer after parsingJeff King1-0/+1
2021-04-08Merge branch 'tb/reverse-midx'Junio C Hamano1-0/+3
2021-04-01pack-revindex: read multi-pack reverse indexesTaylor Blau1-0/+3
2021-03-24Merge branch 'tb/geometric-repack'Junio C Hamano1-0/+67
2021-03-13use CALLOC_ARRAYRené Scharfe1-1/+1
2021-02-22packfile: add kept-pack cache for find_kept_pack_entry()Jeff King1-43/+56
2021-02-22packfile: introduce 'find_kept_pack_entry()'Taylor Blau1-5/+59
2021-01-25packfile: prepare for the existence of '*.rev' filesTaylor Blau1-1/+12
2021-01-25Merge branch 'tb/pack-revindex-api'Junio C Hamano1-24/+52
2021-01-14for_each_object_in_pack(): clarify pack vs index orderingJeff King1-6/+18
2021-01-13for_each_object_in_pack(): convert to new revindex APITaylor Blau1-1/+1
2021-01-13unpack_entry(): convert to new revindex APITaylor Blau1-8/+18
2021-01-13packed_object_info(): convert to new revindex APITaylor Blau1-2/+9
2021-01-13retry_bad_packed_offset(): convert to new revindex APITaylor Blau1-4/+3
2021-01-13get_delta_base_oid(): convert to new revindex APITaylor Blau1-4/+4
2021-01-04hash-lookup: rename from sha1-lookupMartin Ågren1-1/+1
2020-12-08Merge branch 'tb/idx-midx-race-fix'Junio C Hamano1-17/+2
2020-11-25packfile.c: protect against disappearing indexesTaylor Blau1-17/+2
2020-11-16packfile: detect overflow in .idx file size checksJeff King1-3/+3
2020-11-16use size_t to store pack .idx byte offsetsJeff King1-2/+2
2020-11-16compute pack .idx byte offsets using size_tJeff King1-6/+6
2020-10-04Merge branch 'mt/delta-base-cache-races'Junio C Hamano1-19/+29
2020-09-28packfile: fix memory leak in add_delta_base_cache()Matheus Tavares1-2/+5
2020-09-28packfile: fix race condition on unpack_entry()Matheus Tavares1-17/+24
2020-09-22Merge branch 'jk/dont-count-existing-objects-twice'Junio C Hamano1-0/+1
2020-09-17packfile: actually set approximate_object_count_validJeff King1-0/+1
2020-08-28midx: traverse the local MIDX firstTaylor Blau1-0/+11
2020-05-27packfile: compute and use the index CRC offsetbrian m. carlson1-0/+1
2020-02-24packfile: drop nth_packed_object_sha1()Jeff King1-16/+7
2020-02-24packed_object_info(): use object_id internally for delta baseJeff King1-17/+15
2020-02-24packed_object_info(): use object_id for returning delta baseJeff King1-3/+3
2020-02-24nth_packed_object_oid(): use customary integer returnJeff King1-9/+9
2020-02-14Merge branch 'mt/threaded-grep-in-object-store'Junio C Hamano1-0/+34
2020-02-14Merge branch 'jk/packfile-reuse-cleanup'Junio C Hamano1-5/+5
2020-01-17grep: protect packed_git [re-]initializationMatheus Tavares1-0/+2
2020-01-17object-store: allow threaded access to object readingMatheus Tavares1-0/+32
2020-01-06Merge branch 'ew/packfile-syscall-optim'Junio C Hamano1-14/+2
2019-12-26packfile: replace lseek+read with preadEric Wong1-3/+2
2019-12-26packfile: remove redundant fcntl F_GETFD/F_SETFDEric Wong1-11/+0
2019-12-03packfile.c: speed up loading lots of packfilesColin Stolley1-9/+10
2019-10-15Merge branch 'ew/hashmap'Junio C Hamano1-8/+14
2019-10-11Merge branch 'rs/dedup-includes'Junio C Hamano1-1/+0
2019-10-11Merge branch 'bc/object-id-part17'Junio C Hamano1-2/+2
2019-10-07hashmap_cmp_fn takes hashmap_entry paramsEric Wong1-2/+7
2019-10-07hashmap_get{,_from_hash} return "struct hashmap_entry *"Eric Wong1-2/+3
2019-10-07hashmap_remove takes "const struct hashmap_entry *"Eric Wong1-1/+1
2019-10-07hashmap_add takes "struct hashmap_entry *"Eric Wong1-1/+1
2019-10-07hashmap_entry_init takes "struct hashmap_entry *"Eric Wong1-1/+1
2019-10-07packfile: use hashmap_entry in delta_base_cache_entryEric Wong1-1/+1
2019-10-04treewide: remove duplicate #include directivesRené Scharfe1-1/+0
2019-09-30Merge branch 'rs/get-tagged-oid'Junio C Hamano1-1/+1
2019-09-18Merge branch 'cc/multi-promisor'Junio C Hamano1-1/+2
2019-09-13packfile: expose get_delta_base()Jeff King1-5/+5
2019-09-05use get_tagged_oid()René Scharfe1-1/+1
2019-08-19packfile: replace sha1_to_hexbrian m. carlson1-2/+2
2019-08-13packfile: drop release_pack_memory()Jeff King1-18/+0
2019-07-29Merge branch 'ds/close-object-store' into maintJunio C Hamano1-1/+4
2019-07-29Merge branch 'rs/copy-array' into maintJunio C Hamano1-3/+3
2019-07-25Merge branch 'mh/import-transport-fd-fix' into maintJunio C Hamano1-1/+1
2019-07-19Merge branch 'ds/midx-expire-repack'Junio C Hamano1-0/+28
2019-07-09Merge branch 'rs/copy-array'Junio C Hamano1-3/+3
2019-07-09Merge branch 'ds/close-object-store'Junio C Hamano1-1/+4
2019-06-25Use promisor_remote_get_direct() and has_promisor_remote()Christian Couder1-1/+2
2019-06-17use COPY_ARRAY for copying arraysRené Scharfe1-3/+3
2019-06-13Merge branch 'mh/import-transport-fd-fix'Junio C Hamano1-1/+1
2019-06-12packfile: rename close_all_packs to close_object_storeDerrick Stolee1-1/+1
2019-06-12packfile: close commit-graph in close_all_packsDerrick Stolee1-0/+3
2019-06-11repack: refactor pack deletion for future useDerrick Stolee1-0/+28
2019-05-19Merge branch 'ds/midx-too-many-packs'Junio C Hamano1-21/+9
2019-05-16Use xmmap_gently instead of xmmap in use_packMike Hommey1-1/+1
2019-05-09Merge branch 'nd/sha1-name-c-wo-the-repository'Junio C Hamano1-7/+7
2019-05-07midx: add packs to packed_git linked listDerrick Stolee1-20/+8
2019-05-07midx: pass a repository pointerDerrick Stolee1-2/+2
2019-04-25Merge branch 'bc/hash-transition-16'Junio C Hamano1-3/+3
2019-04-25Merge branch 'jk/server-info-rabbit-hole'Junio C Hamano1-3/+15
2019-04-16packfile: fix pack basename computationJeff King1-1/+11
2019-04-16pack-revindex: open index if necessaryJeff King1-2/+4
2019-04-08packfile.c: add repo_approximate_object_count()Nguyễn Thái Ngọc Duy1-7/+7
2019-04-01object-store: rename and expand packed_git's sha1 memberbrian m. carlson1-3/+3
2019-03-22midx: during verify group objects by packfile to speed verificationJeff Hostetler1-1/+1
2019-02-05Merge branch 'sb/more-repo-in-api'Junio C Hamano1-2/+3
2019-01-29Merge branch 'bc/tree-walk-oid'Junio C Hamano1-1/+1
2019-01-15tree-walk: store object_id in a separate memberbrian m. carlson1-1/+1
2019-01-08object-store: factor out odb_clear_loose_cache()René Scharfe1-5/+2
2019-01-04Merge branch 'jk/loose-object-cache'Junio C Hamano1-6/+14
2018-11-13Merge branch 'ds/test-multi-pack-index'Junio C Hamano1-0/+5
2018-11-13object-store: provide helpers for loose_objects_cacheJeff King1-0/+8
2018-11-13sha1-file: use an object_directory for the main object dirJeff King1-5/+5
2018-11-13rename "alternate_object_database" to "object_directory"Jeff King1-4/+4
2018-10-30Merge branch 'bc/hash-transition-part-15'Junio C Hamano1-2/+3
2018-10-26packfile: close multi-pack-index in close_all_packsDerrick Stolee1-0/+5
2018-10-19packfile: allow has_packed_and_bad to handle arbitrary repositoriesStefan Beller1-2/+3
2018-10-15fuzz: add fuzz testing for packfile indices.Josh Steadmon1-19/+25
2018-10-15packfile: express constants in terms of the_hash_algobrian m. carlson1-2/+3
2018-09-17Merge branch 'jk/cocci'Junio C Hamano1-6/+6
2018-08-29convert "hashcmp() != 0" to "!hasheq()"Jeff King1-1/+1
2018-08-29convert "hashcmp() == 0" to hasheq()Jeff King1-5/+5
2018-08-20treewide: use get_all_packsDerrick Stolee1-1/+1
2018-08-20packfile: add all_packs listDerrick Stolee1-0/+27
2018-08-20midx: stop reporting garbageDerrick Stolee1-3/+4
2018-08-20multi-pack-index: store local propertyDerrick Stolee1-2/+2
2018-08-20Sync 'ds/multi-pack-index' to v2.19.0-rc0Junio C Hamano1-42/+127
2018-08-13for_each_packed_object: support iterating in pack-orderJeff King1-5/+16
2018-08-13for_each_*_object: take flag arguments as enumJeff King1-1/+2
2018-07-20packfile: skip loading index if in multi-pack-indexDerrick Stolee1-2/+17
2018-07-20midx: prevent duplicate packfile loadsDerrick Stolee1-0/+9
2018-07-20midx: use midx in approximate_object_countDerrick Stolee1-0/+3
2018-07-20midx: use midx in abbreviation calculationsDerrick Stolee1-0/+6
2018-07-20midx: read objects from multi-pack-indexDerrick Stolee1-1/+7
2018-07-20config: create core.multiPackIndex settingDerrick Stolee1-1/+5
2018-07-20midx: sort and deduplicate objects from packfilesDerrick Stolee1-0/+17
2018-07-20packfile: generalize pack directory listDerrick Stolee1-38/+63
2018-06-29object: add repository argument to parse_objectStefan Beller1-1/+1
2018-06-18Merge branch 'jl/zlib-restore-nul-termination'Junio C Hamano1-0/+3
2018-06-13packfile: correct zlib buffer handlingJeremy Linton1-0/+3
2018-05-30Merge branch 'bc/object-id'Junio C Hamano1-36/+43
2018-05-30Merge branch 'js/use-bug-macro'Junio C Hamano1-3/+3
2018-05-23Merge branch 'sb/oid-object-info'Junio C Hamano1-17/+23
2018-05-23Merge branch 'ds/lazy-load-trees'Junio C Hamano1-1/+1
2018-05-08Merge branch 'ds/commit-graph'Junio C Hamano1-2/+2
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-3/+3
2018-05-02packfile: abstract away hash constant valuesbrian m. carlson1-29/+37
2018-05-02packfile: convert find_pack_entry to object_idbrian m. carlson1-6/+6
2018-05-02packfile: convert has_sha1_pack to object_idbrian m. carlson1-2/+2
2018-05-02packfile: remove unused member from struct pack_entrybrian m. carlson1-1/+0
2018-04-26cache.h: allow oid_object_info to handle arbitrary repositoriesStefan Beller1-30/+28
2018-04-26packfile: add repository argument to cache_or_unpack_entryStefan Beller1-2/+3