aboutsummaryrefslogtreecommitdiffstats
path: root/midx.c
AgeCommit message (Expand)AuthorFilesLines
6 daysMerge branch 'ps/missing-btmp-fix'Junio C Hamano1-3/+4
14 dayspack-bitmap: gracefully handle missing BTMP chunksPatrick Steinhardt1-3/+4
2024-04-01midx-write: move writing-related functions from midx.cTaylor Blau1-1539/+14
2024-03-25midx: use strvec_pushf() for pack-objects base nameRené Scharfe1-6/+1
2023-12-14midx: implement `midx_preferred_pack()`Taylor Blau1-0/+20
2023-12-14midx: implement `midx_locate_pack()`Taylor Blau1-2/+11
2023-12-14midx: implement `BTMP` chunkTaylor Blau1-3/+72
2023-12-14midx: factor out `fill_pack_info()`Taylor Blau1-18/+20
2023-12-14pack-objects: free packing_data in more placesTaylor Blau1-0/+5
2023-11-09midx: check consistency of fanout tableJeff King1-9/+11
2023-10-09midx: check size of revindex chunkJeff King1-1/+2
2023-10-09midx: bounds-check large offset chunkJeff King1-3/+5
2023-10-09midx: check size of object offset chunkJeff King1-1/+14
2023-10-09midx: enforce chunk alignment on readingJeff King1-1/+2
2023-10-09midx: check size of pack names chunkJeff King1-2/+9
2023-10-09midx: check size of oid lookup chunkJeff King1-3/+15
2023-10-09midx: stop ignoring malformed oid fanout chunkJeff King1-8/+8
2023-10-09chunk-format: note that pair_chunk() is unsafeJeff King1-5/+5
2023-07-25Merge branch 'tb/object-access-overflow-protection'Junio C Hamano1-18/+24
2023-07-14midx.c: prevent overflow in `fill_included_packs_batch()`Taylor Blau1-2/+2
2023-07-14midx.c: prevent overflow in `write_midx_internal()`Taylor Blau1-4/+5
2023-07-14midx.c: store `nr`, `alloc` variables as `size_t`'sTaylor Blau1-7/+9
2023-07-14midx.c: prevent overflow in `nth_midxed_offset()`Taylor Blau1-1/+2
2023-07-14midx.c: prevent overflow in `nth_midxed_object_oid()`Taylor Blau1-1/+1
2023-07-14midx.c: use `size_t`'s for fanout nr and allocTaylor Blau1-3/+5
2023-07-05git-compat-util: move alloc macros to git-compat-util.hCalvin Wan1-1/+0
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
2023-05-09Merge branch 'en/header-split-cache-h-part-2'Junio C Hamano1-1/+1
2023-04-25Merge branch 'ps/fix-geom-repack-with-alternates'Junio C Hamano1-3/+3
2023-04-24treewide: remove cache.h inclusion due to previous changesElijah Newren1-1/+1
2023-04-14midx: fix segfault with no packs and invalid preferred packPatrick Steinhardt1-3/+3
2023-04-11object-file.h: move declarations for object-file.c functions from cache.hElijah Newren1-0/+1
2023-03-21csum-file.h: remove unnecessary inclusion of cache.hElijah Newren1-1/+1
2023-03-21abspath.h: move absolute path functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-03-17Merge branch 'jk/unused-post-2.39-part2'Junio C Hamano1-1/+1
2023-02-24for_each_object: mark unused callback parametersJeff King1-1/+1
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
2022-10-27Merge branch 'tb/midx-bitmap-selection-fix'Junio C Hamano1-1/+33
2022-10-13midx.c: instrument MIDX and bitmap generation with trace2 regionsTaylor Blau1-0/+28
2022-10-13midx.c: consider annotated tags during bitmap selectionTaylor Blau1-0/+4
2022-10-13midx.c: fix whitespace typoTaylor Blau1-1/+1
2022-09-21midx.c: avoid cruft packs with non-zero `repack --batch-size`Taylor Blau1-0/+2
2022-09-21midx.c: remove unnecessary loop conditionTaylor Blau1-1/+1
2022-09-21midx.c: replace `xcalloc()` with `CALLOC_ARRAY()`Taylor Blau1-1/+3
2022-09-21midx.c: avoid cruft packs with `repack --batch-size=0`Taylor Blau1-0/+2
2022-09-21midx.c: prevent `expire` from removing the cruft packTaylor Blau1-1/+1
2022-09-05Merge branch 'ac/bitmap-lookup-table'Junio C Hamano1-0/+3
2022-09-05Merge branch 'tb/midx-with-changing-preferred-pack-fix'Junio C Hamano1-46/+95
2022-08-26pack-bitmap-write: learn pack.writeBitmapLookupTable and add testsAbhradeep Chakraborty1-0/+3
2022-08-22midx.c: avoid adding preferred objects twiceTaylor Blau1-2/+13
2022-08-22midx.c: include preferred pack correctly with existing MIDXTaylor Blau1-7/+7
2022-08-22midx.c: extract `midx_fanout_add_pack_fanout()`Taylor Blau1-15/+28
2022-08-22midx.c: extract `midx_fanout_add_midx_fanout()`Taylor Blau1-19/+28
2022-08-22midx.c: extract `struct midx_fanout`Taylor Blau1-19/+35
2022-07-27write_midx_bitmap(): drop unused refs_snapshot parameterJeff King1-2/+1
2022-07-19midx: reduce memory pressure while writing bitmapsDerrick Stolee1-0/+13
2022-07-19midx: extract bitmap write setupDerrick Stolee1-24/+32
2022-06-07Merge branch 'ab/plug-leak-in-revisions'Junio C Hamano1-0/+1
2022-06-03Merge branch 'tb/cruft-packs'Junio C Hamano1-15/+3
2022-05-26chunk-format.h: extract oid_version()Taylor Blau1-15/+3
2022-05-04Merge branch 'ds/midx-normalize-pathname-before-comparison'Junio C Hamano1-4/+13
2022-04-25midx: use real paths in lookup_multi_pack_index()Derrick Stolee1-4/+13
2022-04-13revisions API users: add straightforward release_revisions()Ævar Arnfjörð Bjarmason1-0/+1
2022-03-10core.fsync: introduce granular fsync control infrastructureNeeraj Singh1-1/+2
2022-02-18Merge branch 'tb/midx-no-bitmap-for-no-objects'Junio C Hamano1-0/+9
2022-02-09midx: prevent writing a .bitmap without any objectsTaylor Blau1-0/+9
2022-01-27midx: read `RIDX` chunk when presentTaylor Blau1-1/+5
2022-01-27midx.c: make changing the preferred pack safeTaylor Blau1-3/+20
2021-11-29Merge branch 'tb/plug-pack-bitmap-leaks'Junio C Hamano1-28/+38
2021-10-28midx.c: write MIDX filenames to strbufTaylor Blau1-26/+33
2021-10-27midx.c: don't leak MIDX from verify_midx_fileTaylor Blau1-1/+3
2021-10-21midx.c: clean up chunkfile after reading the MIDXTaylor Blau1-1/+2
2021-10-18Merge branch 'tb/repack-write-midx'Junio C Hamano1-12/+98
2021-10-15midx.c: guard against commit_lock_file() failuresTaylor Blau1-1/+2
2021-10-15midx.c: lookup MIDX by object directory during repackTaylor Blau1-4/+1
2021-10-15midx.c: lookup MIDX by object directory during expireTaylor Blau1-4/+3
2021-10-15midx.c: extract MIDX lookup by object_dirTaylor Blau1-10/+17
2021-10-15Merge branch 'tb/repack-write-midx' into tb/fix-midx-rename-while-mappedJunio C Hamano1-12/+98
2021-10-11Merge branch 'tb/midx-write-propagate-namehash'Junio C Hamano1-1/+5
2021-09-28midx: preliminary support for `--refs-snapshot`Taylor Blau1-8/+53
2021-09-28midx: expose `write_midx_file_only()` publiclyTaylor Blau1-8/+49
2021-09-23Merge branch 'rs/packfile-bad-object-list-in-oidset'Junio C Hamano1-26/+11
2021-09-14midx.c: respect 'pack.writeBitmapHashcache' when writing bitmapsTaylor Blau1-1/+5
2021-09-12packfile: use oidset for bad objectsRené Scharfe1-7/+3
2021-09-12midx: inline nth_midxed_pack_entry()René Scharfe1-20/+9
2021-09-09pack-bitmap: drop repository argument from prepare_midx_bitmap_git()Jeff King1-1/+1
2021-09-01pack-bitmap: write multi-pack bitmapsTaylor Blau1-8/+201
2021-09-01pack-bitmap: read multi-pack bitmapsTaylor Blau1-2/+2
2021-09-01midx: avoid opening multiple MIDXs when writingTaylor Blau1-11/+18
2021-09-01midx: close linked MIDXs, avoid leaking memoryTaylor Blau1-0/+3
2021-09-01midx: infer preferred pack when not given oneTaylor Blau1-6/+44
2021-09-01midx: reject empty `--preferred-pack`'sTaylor Blau1-0/+29
2021-09-01midx: clear auxiliary .rev after replacing the MIDXTaylor Blau1-1/+2
2021-09-01midx: fix `*.rev` cleanups with `--object-dir`Taylor Blau1-5/+5
2021-07-28Merge branch 'ab/attribute-format'Junio C Hamano1-0/+1
2021-07-13*.c static functions: add missing __attribute__((format))Ævar Arnfjörð Bjarmason1-0/+1
2021-06-28midx: report checksum mismatches during 'verify'Taylor Blau1-0/+3
2021-06-28midx: don't reuse corrupt MIDXs when writingTaylor Blau1-0/+10
2021-04-27Always use oidread to read into struct object_idbrian m. carlson1-1/+1
2021-04-08Merge branch 'tb/reverse-midx'Junio C Hamano1-13/+206
2021-04-01midx.c: improve cache locality in midx_pack_order_cmp()Jeff King1-26/+29
2021-04-01pack-revindex: write multi-pack reverse indexesTaylor Blau1-0/+115
2021-04-01pack-revindex: read multi-pack reverse indexesTaylor Blau1-0/+11
2021-04-01midx: make some functions non-staticTaylor Blau1-2/+2
2021-04-01midx: keep track of the checksumTaylor Blau1-1/+2
2021-04-01midx: don't free midx_name earlyTaylor Blau1-1/+0
2021-04-01midx: allow marking a pack as preferredTaylor Blau1-9/+73
2021-03-13use CALLOC_ARRAYRené Scharfe1-4/+4
2021-03-01Merge branch 'ds/chunked-file-api'Junio C Hamano1-264/+169
2021-02-24Merge branch 'ds/chunked-file-api' into tb/reverse-midxJunio C Hamano1-264/+169
2021-02-18midx: use 64-bit multiplication for chunk sizesDerrick Stolee1-5/+6
2021-02-18midx: use chunk-format read APIDerrick Stolee1-47/+26
2021-02-18midx: use chunk-format API in write_midx_internal()Derrick Stolee1-86/+20
2021-02-18midx: drop chunk progress during writeDerrick Stolee1-7/+0
2021-02-18midx: return success/failure in chunk write methodsDerrick Stolee1-36/+27
2021-02-18midx: add num_large_offsets to write_midx_contextDerrick Stolee1-7/+10
2021-02-18midx: add pack_perm to write_midx_contextDerrick Stolee1-19/+21
2021-02-18midx: add entries to write_midx_contextDerrick Stolee1-23/+26
2021-02-18midx: use context in write_midx_pack_names()Derrick Stolee1-11/+10
2021-02-18midx: rename pack_info to write_midx_contextDerrick Stolee1-65/+65
2021-01-25Merge branch 'ma/more-opaque-lock-file'Junio C Hamano1-1/+1
2021-01-06midx: don't peek into `struct lock_file`Martin Ågren1-1/+1
2021-01-04hash-lookup: rename from sha1-lookupMartin Ågren1-1/+1
2020-12-08Merge branch 'tb/idx-midx-race-fix'Junio C Hamano1-1/+1
2020-11-25Merge branch 'rs/hashwrite-be64'Junio C Hamano1-5/+2
2020-11-25midx.c: protect against disappearing packsTaylor Blau1-1/+1
2020-11-12midx: use hashwrite_be64()René Scharfe1-5/+2
2020-10-27Merge branch 'ds/maintenance-part-2'Junio C Hamano1-13/+8
2020-09-25midx: use start_delayed_progress()Derrick Stolee1-5/+5
2020-09-25midx: enable core.multiPackIndex by defaultDerrick Stolee1-8/+3
2020-09-18Merge branch 'rs/misc-cleanups'Junio C Hamano1-7/+4
2020-09-09Merge branch 'tb/repack-clearing-midx'Junio C Hamano1-2/+6
2020-09-06midx: use hashwrite_u8() in write_midx_header()René Scharfe1-7/+4
2020-08-28midx: traverse the local MIDX firstTaylor Blau1-2/+6
2020-08-24Merge branch 'rs/more-buffered-io'Junio C Hamano1-3/+5
2020-08-24Merge branch 'jk/unleak-fixes'Junio C Hamano1-6/+2
2020-08-24Merge branch 'ds/midx-repack-to-batch-size'Junio C Hamano1-1/+1
2020-08-17multi-pack-index: use hash version byteDerrick Stolee1-6/+29
2020-08-17midx: use buffered I/O to talk to pack-objectsRené Scharfe1-3/+5
2020-08-13stop calling UNLEAK() before die()Jeff King1-6/+2
2020-08-11multi-pack-index: repack batches below --batch-sizeDerrick Stolee1-1/+1
2020-07-28strvec: convert remaining callers away from argv_array nameJeff King1-6/+6
2020-05-10multi-pack-index: respect repack.packKeptObjects=falseDerrick Stolee1-5/+21
2020-05-10midx: teach "git multi-pack-index repack" honor "git repack" configurationsSon Luong Ngoc1-0/+16
2020-05-01Merge branch 'ds/multi-pack-index'Junio C Hamano1-3/+1
2020-04-24multi-pack-index: close file descriptor after mmapDerrick Stolee1-3/+1
2020-03-28midx.c: fix an integer underflowDamien Robert1-0/+15
2020-02-24nth_packed_object_oid(): use customary integer returnJeff King1-1/+1
2019-10-23midx: honor the MIDX_PROGRESS flag in midx_repackWilliam Baker1-0/+6
2019-10-23midx: honor the MIDX_PROGRESS flag in verify_midx_fileWilliam Baker1-8/+12
2019-10-23midx: add progress to expire_midx_packsWilliam Baker1-0/+12
2019-10-23midx: add progress to write_midx_fileWilliam Baker1-4/+21
2019-10-23midx: add MIDX_PROGRESS flagWilliam Baker1-4/+4
2019-08-19midx: switch to using the_hash_algobrian m. carlson1-6/+5
2019-06-11midx: implement midx_repack()Derrick Stolee1-1/+150
2019-06-11multi-pack-index: prepare 'repack' subcommandDerrick Stolee1-0/+5
2019-06-11multi-pack-index: implement 'expire' subcommandDerrick Stolee1-10/+109
2019-06-11midx: refactor permutation logic and pack sortingDerrick Stolee1-87/+69
2019-06-11midx: simplify computation of pack name lengthsDerrick Stolee1-9/+9
2019-06-11multi-pack-index: prepare for 'expire' subcommandDerrick Stolee1-0/+5
2019-05-07midx: add packs to packed_git linked listDerrick Stolee1-6/+14
2019-05-07midx: pass a repository pointerDerrick Stolee1-8/+14
2019-04-25Merge branch 'jk/server-info-rabbit-hole'Junio C Hamano1-2/+34
2019-04-22Merge branch 'dl/flex-str-cocci'Junio C Hamano1-1/+1
2019-04-16midx: check both pack and index names for containmentJeff King1-2/+34
2019-04-04midx.c: convert FLEX_ALLOC_MEM to FLEX_ALLOC_STRDenton Liu1-1/+1
2019-03-22midx: during verify group objects by packfile to speed verificationJeff Hostetler1-3/+46
2019-03-22midx: add progress indicators in multi-pack-index verifyJeff Hostetler1-2/+24
2019-03-22trace2:data: add trace2 data to midxJeff Hostetler1-0/+4
2019-01-04Merge branch 'jk/loose-object-cache'Junio C Hamano1-1/+1
2018-11-29i18n: fix small typosJean-Noël Avila1-1/+1
2018-11-18Merge branch 'jk/unused-parameter-fixes'Junio C Hamano1-3/+9
2018-11-13Merge branch 'ds/test-multi-pack-index'Junio C Hamano1-6/+20
2018-11-06midx: double-check large object write loopJeff King1-3/+9
2018-10-22multi-pack-index: define GIT_TEST_MULTI_PACK_INDEXDerrick Stolee1-2/+7
2018-10-22midx: close multi-pack-index on repackDerrick Stolee1-3/+12
2018-10-19multi-pack-index: avoid dead store for struct progressCarlo Marcelo Arenas Belón1-1/+1
2018-10-16Merge branch 'jk/oideq-hasheq-cleanup'Junio C Hamano1-4/+4
2018-10-09midx: fix broken free() in close_midx()Derrick Stolee1-1/+1
2018-10-04more oideq/hasheq conversionsJeff King1-4/+4
2018-09-17multi-pack-index: report progress during 'verify'Derrick Stolee1-0/+6
2018-09-17multi-pack-index: verify object offsetsDerrick Stolee1-1/+28
2018-09-17multi-pack-index: fix 32-bit vs 64-bit size checkDerrick Stolee1-1/+1
2018-09-17multi-pack-index: verify oid lookup orderDerrick Stolee1-0/+11
2018-09-17multi-pack-index: verify oid fanout orderDerrick Stolee1-0/+9
2018-09-17multi-pack-index: verify missing packDerrick Stolee1-0/+16
2018-09-17multi-pack-index: verify packname orderDerrick Stolee1-4/+2
2018-09-17multi-pack-index: verify corrupt chunk lookup tableDerrick Stolee1-0/+3
2018-09-17multi-pack-index: verify bad headerDerrick Stolee1-12/+6
2018-09-17multi-pack-index: add 'verify' verbDerrick Stolee1-0/+13
2018-08-20packfile: add all_packs listDerrick Stolee1-1/+1
2018-08-20midx: fix bug that skips midx with alternatesDerrick Stolee1-5/+6
2018-08-20midx: mark bad packed objectsDerrick Stolee1-0/+10
2018-08-20multi-pack-index: store local propertyDerrick Stolee1-5/+6
2018-07-20midx: clear midx on repackDerrick Stolee1-0/+12
2018-07-20midx: use existing midx when writing new oneDerrick Stolee1-6/+110
2018-07-20midx: use midx in abbreviation calculationsDerrick Stolee1-0/+11
2018-07-20midx: read objects from multi-pack-indexDerrick Stolee1-1/+90