aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/index-pack.c
AgeCommit message (Expand)AuthorFilesLines
12 daysbuiltin/index-pack: fix deferred fsck outside reposPatrick Steinhardt1-3/+18
2025-09-24packfile: introduce function to load and add packfilesPatrick Steinhardt1-7/+3
2025-09-24packfile: refactor `install_packed_git()` to work on packfile storePatrick Steinhardt1-1/+1
2025-08-05Merge branch 'ps/object-file-wo-the-repository'Junio C Hamano1-1/+1
2025-07-23config: drop `git_config()` wrapperPatrick Steinhardt1-1/+1
2025-07-17Merge branch 'bc/use-sha256-by-default-in-3.0' into ps/config-wo-the-repositoryJunio C Hamano1-1/+1
2025-07-16object-file: get rid of `the_repository` in `finalize_object_file()`Patrick Steinhardt1-1/+1
2025-07-01builtin: use default hash when outside a repositorybrian m. carlson1-1/+1
2025-07-01odb: rename `has_object()`Patrick Steinhardt1-2/+2
2025-07-01odb: rename `repo_read_object_file()`Patrick Steinhardt1-4/+4
2025-07-01odb: rename `oid_object_info()`Patrick Steinhardt1-6/+7
2025-07-01odb: get rid of `the_repository` in `odb_mkstemp()`Patrick Steinhardt1-1/+1
2025-07-01object-store: rename files to "odb.{c,h}"Patrick Steinhardt1-1/+1
2025-05-12Merge branch 'ds/fix-thin-fix'Junio C Hamano1-26/+32
2025-04-29treewide: convert users of `repo_has_object_file()` to `has_object()`Patrick Steinhardt1-3/+2
2025-04-29object-store: move and rename `odb_pack_keep()`Patrick Steinhardt1-1/+1
2025-04-28index-pack: allow revisiting REF_DELTA chainsDerrick Stolee1-26/+32
2025-04-15Merge branch 'ps/object-wo-the-repository'Junio C Hamano1-7/+9
2025-04-15object-store: merge "object-store-ll.h" and "object-store.h"Patrick Steinhardt1-1/+1
2025-04-08Merge branch 'ps/object-wo-the-repository' into ps/object-file-cleanupJunio C Hamano1-7/+9
2025-04-07Merge branch 'jh/hash-init-fixes'Junio C Hamano1-0/+1
2025-03-18index-pack, unpack-objects: restore missing ->init_fnJensen Huang1-0/+1
2025-03-10environment: move access to "core.bigFileThreshold" into repo settingsPatrick Steinhardt1-2/+4
2025-03-10pack-write: stop depending on `the_repository` and `the_hash_algo`Patrick Steinhardt1-2/+2
2025-03-10object: stop depending on `the_repository`Patrick Steinhardt1-2/+2
2025-03-10csum-file: stop depending on `the_repository`Patrick Steinhardt1-1/+1
2025-02-10Merge branch 'ps/hash-cleanup'Junio C Hamano1-10/+9
2025-02-03Merge branch 'kn/pack-write-with-reduced-globals'Junio C Hamano1-5/+6
2025-01-31global: adapt callers to use generic hash context helpersPatrick Steinhardt1-7/+6
2025-01-31hash: stop typedeffing the hash contextPatrick Steinhardt1-3/+3
2025-01-28Merge branch 'jk/pack-header-parse-alignment-fix'Junio C Hamano1-18/+12
2025-01-28Merge branch 'jc/show-usage-help'Junio C Hamano1-2/+1
2025-01-21pack-write: pass hash_algo to `write_rev_file()`Karthik Nayak1-3/+3
2025-01-21pack-write: pass hash_algo to `write_idx_file()`Karthik Nayak1-1/+2
2025-01-21pack-write: pass hash_algo to `fixup_pack_header_footer()`Karthik Nayak1-1/+1
2025-01-21Merge branch 'ps/the-repository'Junio C Hamano1-2/+5
2025-01-21index-pack, unpack-objects: use skip_prefix to avoid magic numberJeff King1-3/+3
2025-01-21index-pack, unpack-objects: use get_be32() for reading pack headerJeff King1-5/+7
2025-01-21packfile: factor out --pack_header argument parsingJeff King1-11/+3
2025-01-17builtin: send usage() help text to standard outputJunio C Hamano1-2/+1
2025-01-01Revert barrier-based LSan threading race workaroundJunio C Hamano1-6/+0
2024-12-30index-pack: work around LSan threading race with barrierJeff King1-0/+6
2024-12-30Revert "index-pack: spawn threads atomically"Jeff King1-2/+0
2024-12-23Merge branch 'ps/build-sign-compare'Junio C Hamano1-0/+2
2024-12-18progress: stop using `the_repository`Patrick Steinhardt1-2/+5
2024-12-18Merge branch 'ps/build-sign-compare' into ps/the-repositoryJunio C Hamano1-0/+2
2024-12-15Merge branch 'jt/fix-fattening-promisor-fetch'Junio C Hamano1-33/+72
2024-12-13Merge branch 'kn/midx-wo-the-repository'Junio C Hamano1-7/+13
2024-12-10index-pack --promisor: also check commits' treesJonathan Tan1-0/+1
2024-12-10index-pack --promisor: don't check blobsJonathan Tan1-1/+30
2024-12-10index-pack --promisor: dedup before checking linksJonathan Tan1-33/+42
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt1-0/+2
2024-12-04Merge branch 'kn/the-repository' into kn/midx-wo-the-repositoryJunio C Hamano1-7/+13
2024-12-04config: make `delta_base_cache_limit` a non-global variableKarthik Nayak1-3/+7
2024-12-04packfile: pass down repository to `odb_pack_name`Karthik Nayak1-2/+2
2024-12-04packfile: add repository to struct `packed_git`Karthik Nayak1-2/+4
2024-11-27Merge branch 'jt/index-pack-allow-promisor-only-while-fetching'Junio C Hamano1-0/+2
2024-11-27Merge branch 'bc/c23'Junio C Hamano1-5/+5
2024-11-20index-pack: teach --promisor to forbid pack nameJonathan Tan1-0/+2
2024-11-18index-pack: rename struct thread_localbrian m. carlson1-5/+5
2024-11-12index-pack: repack local links into promisor packsJonathan Tan1-2/+109
2024-09-30pack-write: fix return parameter of `write_rev_file_order()`Patrick Steinhardt1-4/+3
2024-09-23Merge branch 'jc/pass-repo-to-builtins'Junio C Hamano1-1/+5
2024-09-13builtin: remove USE_THE_REPOSITORY_VARIABLE from builtin.hJohn Cai1-0/+1
2024-09-13builtin: add a repository parameter for builtin functionsJohn Cai1-1/+4
2024-09-04builtin/index-pack: fix segfaults when running outside of a repoPatrick Steinhardt1-0/+9
2024-06-14hash: require hash algorithm in `oidread()` and `oidclr()`Patrick Steinhardt1-2/+3
2024-06-14hash: require hash algorithm in `hasheq()`, `hashcmp()` and `hashclr()`Patrick Steinhardt1-3/+3
2024-03-02unpack: replace xwrite() loop with write_in_full()Junio C Hamano1-14/+3
2024-02-08Merge branch 'jc/index-pack-fsck-levels'Junio C Hamano1-2/+3
2024-02-01index-pack: --fsck-objects to take an optional argument for fsck msgsJohn Cai1-2/+3
2024-02-01index-pack: test and document --strict=<msg-id>=<severity>...John Cai1-1/+1
2024-01-16Merge branch 'jk/index-pack-lsan-false-positive-fix'Junio C Hamano1-0/+2
2024-01-05index-pack: spawn threads atomicallyJeff King1-0/+2
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-2/+0
2023-09-13Merge branch 'ew/hash-with-openssl-evp'Junio C Hamano1-1/+4
2023-08-31treewide: fix various bugs w/ OpenSSL 3+ EVP APIEric Wong1-1/+4
2023-07-25Merge branch 'jk/unused-parameter'Junio C Hamano1-1/+2
2023-07-17Merge branch 'cw/compat-util-header-cleanup'Junio C Hamano1-2/+0
2023-07-13fsck: mark unused parameters in various fsck callbacksJeff King1-1/+2
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-4/+5
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/+2
2023-06-28config: pass kvi to die_bad_number()Glen Choo1-2/+2
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-2/+3
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+2
2023-06-12repository: create disable_replace_refs()Derrick Stolee1-1/+1
2023-04-27Merge branch 'tb/pack-revindex-on-disk'Junio C Hamano1-2/+3
2023-04-13t: invert `GIT_TEST_WRITE_REV_INDEX`Taylor Blau1-2/+2
2023-04-13config: enable `pack.writeReverseIndex` by defaultTaylor Blau1-0/+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 oid-array.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on pack-revindex.hElijah Newren1-0/+1
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-0/+4
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-4/+7
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-4/+7
2023-03-28cocci: apply the "promisor-remote.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-3/+6
2023-03-21setup.h: move declarations for setup.c functions from cache.hElijah Newren1-0/+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-02-23replace-object.h: move read_replace_refs declaration from cache.h to hereElijah Newren1-0/+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-0/+1
2022-06-17i18n: fix mismatched camelCase config variablesJiang Xin1-1/+1
2022-05-20Merge branch 'ep/maint-equals-null-cocci'Junio C Hamano1-3/+3
2022-05-02Merge branch 'ep/maint-equals-null-cocci' for maint-2.35Junio C Hamano1-3/+3
2022-05-02tree-wide: apply equals-null.cocciJunio C Hamano1-3/+3
2022-03-25Merge branch 'ns/core-fsyncmethod'Junio C Hamano1-2/+2
2022-03-16Merge branch 'ab/string-list-count-in-size-t'Junio C Hamano1-1/+1
2022-03-16Merge branch 'ab/object-file-api-updates'Junio C Hamano1-6/+4
2022-03-13Merge branch 'ab/plug-random-leaks'Junio C Hamano1-0/+5
2022-03-10core.fsync: introduce granular fsync control infrastructureNeeraj Singh1-2/+2
2022-03-07gettext API users: don't explicitly cast ngettext()'s "n"Ævar Arnfjörð Bjarmason1-1/+1
2022-03-04index-pack: fix memory leaksÆvar Arnfjörð Bjarmason1-0/+5
2022-02-25object-file API: have hash_object_file() take "enum object_type"Ævar Arnfjörð Bjarmason1-2/+2
2022-02-25object-file API: split up and simplify check_object_signature()Ævar Arnfjörð Bjarmason1-1/+1
2022-02-25object API users + docs: check <0, not !0 with check_object_signature()Ævar Arnfjörð Bjarmason1-3/+2
2022-02-25object-file API: add a format_object_header() functionÆvar Arnfjörð Bjarmason1-2/+1
2022-02-23index-pack: clarify the breached limitMatt Cooper1-2/+6
2022-01-05i18n: factorize "--foo requires --bar" and the likeJean-Noël Avila1-1/+1
2022-01-05i18n: turn "options are incompatible" into "cannot be used together"Jean-Noël Avila1-1/+1
2021-10-31i18n: fix typos found during l10n for git 2.34.0Jiang Xin1-1/+1
2021-10-25Merge branch 'ab/fsck-unexpected-type'Junio C Hamano1-1/+1
2021-10-01fsck: report invalid object type-path combinationsÆvar Arnfjörð Bjarmason1-1/+1
2021-09-23Merge branch 'rs/use-xopen-in-index-pack'Junio C Hamano1-3/+1
2021-09-20Merge branch 'ab/unbundle-progress'Junio C Hamano1-0/+6
2021-09-20Merge branch 'tb/pack-finalize-ordering'Junio C Hamano1-25/+23
2021-09-10index-pack: use xopen in init_threadRené Scharfe1-3/+1
2021-09-09builtin/index-pack.c: move `.idx` files into place lastTaylor Blau1-2/+2
2021-09-09index-pack: refactor renaming in final()Ævar Arnfjörð Bjarmason1-25/+23
2021-09-07index-pack: add --progress-title optionÆvar Arnfjörð Bjarmason1-0/+6
2021-08-25use xopen() to handle fatal open(2) failuresRené Scharfe1-6/+2
2021-07-12*.c static functions: don't forward-declare __attribute__Ævar Arnfjörð Bjarmason1-3/+1
2021-04-27Use the final_oid_fn to finalize hashing of object IDsbrian m. carlson1-1/+1
2021-04-27Always use oidread to read into struct object_idbrian m. carlson1-2/+2
2021-04-07Merge branch 'ab/fsck-api-cleanup'Junio C Hamano1-25/+5
2021-03-28fetch-pack: use new fsck API to printing dangling submodulesÆvar Arnfjörð Bjarmason1-20/+1
2021-03-28fetch-pack: don't needlessly copy fsck_optionsÆvar Arnfjörð Bjarmason1-7/+3
2021-03-28fsck.c: pass along the fsck_msg_id in the fsck_error callbackÆvar Arnfjörð Bjarmason1-1/+2
2021-03-28fsck.h: move FSCK_{FATAL,INFO,ERROR,WARN,IGNORE} into an enumÆvar Arnfjörð Bjarmason1-1/+2
2021-03-28fsck.h: use "enum object_type" instead of "int"Ævar Arnfjörð Bjarmason1-1/+2
2021-03-13use CALLOC_ARRAYRené Scharfe1-5/+5
2021-03-01Merge branch 'jt/transfer-fsck-across-packs'Junio C Hamano1-2/+23
2021-02-22fetch-pack: print and use dangling .gitmodulesJonathan Tan1-2/+23
2021-01-25t: support GIT_TEST_WRITE_REV_INDEXTaylor Blau1-1/+4
2021-01-25builtin/index-pack.c: write reverse indexesTaylor Blau1-3/+47
2021-01-25builtin/index-pack.c: allow stripping arbitrary extensionsTaylor Blau1-8/+8
2021-01-04object-file.c: rename from sha1-file.cMartin Ågren1-1/+1
2020-11-16compute pack .idx byte offsets using size_tJeff King1-1/+1
2020-10-08Merge branch 'jk/index-pack-hotfixes'Junio C Hamano1-17/+12
2020-10-07index-pack: make get_base_data() comment clearerJonathan Tan1-11/+8
2020-10-07index-pack: drop type_cas mutexJeff King1-6/+0
2020-10-07index-pack: restore "resolving deltas" progress meterJeff King1-0/+4
2020-09-22Merge branch 'jt/threaded-index-pack'Junio C Hamano1-206/+250
2020-09-08index-pack: make quantum of work smallerJonathan Tan1-148/+200
2020-08-24index-pack: make resolve_delta() assume base dataJonathan Tan1-3/+5
2020-08-24index-pack: calculate {ref,ofs}_{first,last} earlyJonathan Tan1-63/+60
2020-08-24index-pack: remove redundant child fieldJonathan Tan1-19/+22
2020-08-24index-pack: unify threaded and unthreaded codeJonathan Tan1-9/+1
2020-08-24index-pack: remove redundant parameterJonathan Tan1-14/+12
2020-08-21index-pack: adjust default threading capJeff King1-3/+16
2020-06-19builtin/index-pack: add option to specify hash algorithmbrian m. carlson1-0/+8
2020-05-27packfile: compute and use the index CRC offsetbrian m. carlson1-5/+1
2020-04-02promisor-remote: accept 0 as oid_nr in functionJonathan Tan1-3/+2
2020-02-14Merge branch 'jk/index-pack-dupfix'Junio C Hamano1-1/+3
2020-02-04index-pack: downgrade twice-resolved REF_DELTA to die()Jeff King1-1/+3
2020-01-31sha1-file: allow check_object_signature() to handle any repoMatheus Tavares1-2/+3
2020-01-31sha1-file: pass git_hash_algo to hash_object_file()Matheus Tavares1-1/+1
2020-01-31streaming: allow open_istream() to handle any repoMatheus Tavares1-1/+2
2019-10-11Merge branch 'bc/object-id-part17'Junio C Hamano1-2/+2
2019-08-19builtin/index-pack: replace sha1_to_hexbrian m. carlson1-2/+2
2019-06-25Use promisor_remote_get_direct() and has_promisor_remote()Christian Couder1-4/+4
2019-05-15index-pack: prefetch missing REF_DELTA basesJonathan Tan1-2/+24
2019-04-01index-pack: show progress while checking objectsSZEDER Gábor1-1/+9
2019-01-08convert has_sha1_file() callers to has_object_file()Jeff King1-1/+1
2018-11-19Merge branch 'tb/print-size-t-with-uintmax-format'Junio C Hamano1-4/+5
2018-11-12Upcast size_t variables to uintmax_t when printingTorsten Bögershausen1-4/+5
2018-11-05index-pack: remove #ifdef NO_PTHREADSNguyễn Thái Ngọc Duy1-49/+14
2018-08-29convert "hashcmp() != 0" to "!hasheq()"Jeff King1-2/+2
2018-08-29convert "oidcmp() == 0" to oideq()Jeff King1-2/+2
2018-08-15Merge branch 'jk/core-use-replace-refs'Junio C Hamano1-1/+1
2018-07-18check_replace_refs: rename to read_replace_refsJeff King1-1/+1
2018-06-29blob: add repository argument to lookup_blobStefan Beller1-1/+1
2018-06-29object: add repository argument to parse_object_bufferStefan Beller1-1/+2
2018-06-13Merge branch 'jk/index-pack-maint'Junio C Hamano1-2/+6
2018-06-11index-pack: correct install_packed_git() argsJunio C Hamano1-1/+1
2018-06-01index-pack: handle --strict checks of non-repo packsJeff King1-2/+6
2018-05-30Merge branch 'bc/object-id'Junio C Hamano1-1/+2
2018-05-30Merge branch 'js/use-bug-macro'Junio C Hamano1-2/+2
2018-05-29Sync with Git 2.17.1Junio C Hamano1-1/+11
2018-05-23Merge branch 'sb/oid-object-info'Junio C Hamano1-2/+2
2018-05-21index-pack: check .gitmodules files with --strictJeff King1-0/+10
2018-05-21index-pack: make fsck error message more specificJeff King1-1/+1
2018-05-08Merge branch 'ds/commit-graph'Junio C Hamano1-1/+1
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-2/+2
2018-05-02index-pack: abstract away hash function constantbrian m. carlson1-1/+2
2018-04-26cache.h: add repository argument to oid_object_infoStefan Beller1-2/+2