aboutsummaryrefslogtreecommitdiffstats
path: root/read-cache.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-24Merge branch 'bc/submodule-force-same-hash'Junio C Hamano1-3/+0
2025-11-15read-cache: drop submodule check from add_to_cache()Jeff King1-3/+0
2025-10-08Merge branch 'ps/rust-balloon'Junio C Hamano1-2/+4
2025-10-02varint: use explicit width for integersPatrick Steinhardt1-2/+4
2025-09-16odb: add transaction interfaceJustin Tobler1-2/+2
2025-09-16object-file: relocate ODB transaction codeJustin Tobler1-1/+0
2025-08-25bulk-checkin: remove global transaction stateJustin Tobler1-2/+3
2025-08-05Merge branch 'ps/object-file-wo-the-repository'Junio C Hamano1-1/+1
2025-07-23config: drop `git_config_get_bool()` wrapperPatrick Steinhardt1-2/+2
2025-07-16odb: introduce `odb_write_object()`Patrick Steinhardt1-1/+1
2025-07-15Merge branch 'ps/object-store'Junio C Hamano1-7/+7
2025-07-07read-cache: report lock error when refreshing indexHan Young1-1/+2
2025-07-01odb: rename `repo_read_object_file()`Patrick Steinhardt1-3/+3
2025-07-01odb: rename `oid_object_info()`Patrick Steinhardt1-3/+3
2025-07-01object-store: rename files to "odb.{c,h}"Patrick Steinhardt1-1/+1
2025-05-15has_dir_name(): make code more obviousJohannes Schindelin1-42/+13
2025-04-24Merge branch 'ps/object-file-cleanup'Junio C Hamano1-3/+3
2025-04-23Merge branch 'js/range-check-codeql-workaround'Junio C Hamano1-2/+2
2025-04-15object-store: merge "object-store-ll.h" and "object-store.h"Patrick Steinhardt1-1/+1
2025-04-15object-file: split up concerns of `HASH_*` flagsPatrick Steinhardt1-2/+2
2025-03-28read-cache: check range before dereferencing an array elementJohannes Schindelin1-2/+2
2025-03-10hash: stop depending on `the_repository` in `null_oid()`Patrick Steinhardt1-1/+1
2025-03-10csum-file: stop depending on `the_repository`Patrick Steinhardt1-1/+1
2025-03-05Merge branch 'ps/path-sans-the-repository'Junio C Hamano1-8/+18
2025-02-28path: adjust last remaining users of `the_repository`Patrick Steinhardt1-1/+1
2025-02-28path: drop `git_path()` in favor of `repo_git_path()`Patrick Steinhardt1-7/+17
2025-01-31global: adapt callers to use generic hash context helpersPatrick Steinhardt1-7/+7
2025-01-31hash: stop typedeffing the hash contextPatrick Steinhardt1-6/+6
2024-12-18resolve-undo: stop using `the_repository`Patrick Steinhardt1-2/+2
2024-12-18progress: stop using `the_repository`Patrick Steinhardt1-1/+2
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt1-0/+1
2024-10-22Merge branch 'ps/cache-tree-w-broken-index-entry'Taylor Blau1-2/+3
2024-10-10Merge branch 'ps/leakfixes-part-8'Junio C Hamano1-0/+1
2024-10-07cache-tree: refactor verification to return error codesPatrick Steinhardt1-2/+3
2024-10-04Merge branch 'ds/read-cache-mempool-leakfix'Junio C Hamano1-0/+1
2024-10-01read-cache: free threaded memory poolDerrick Stolee1-0/+1
2024-09-30read-cache: fix leaking hash context in `do_write_index()`Patrick Steinhardt1-0/+1
2024-09-12environment: make `get_git_dir()` accept a repositoryPatrick Steinhardt1-2/+4
2024-08-26Merge branch 'ps/maintenance-detach-fix'Junio C Hamano1-3/+9
2024-08-23Merge branch 'ps/config-wo-the-repository'Junio C Hamano1-11/+11
2024-08-16config: fix constness of out parameter for `git_config_get_expiry()`Patrick Steinhardt1-3/+9
2024-08-14read-cache: fix leaking hashfile when writing index failsPatrick Steinhardt1-39/+58
2024-08-13config: pass repo to `git_config_get_expiry()`Patrick Steinhardt1-2/+2
2024-08-13config: pass repo to `git_config_get_max_percent_split_change()`Patrick Steinhardt1-1/+1
2024-08-13config: pass repo to `git_config_get_split_index()`Patrick Steinhardt1-1/+1
2024-08-13config: pass repo to `git_config_get_index_threads()`Patrick Steinhardt1-4/+4
2024-08-13hooks: remove implicit dependency on `the_repository`Patrick Steinhardt1-3/+3
2024-06-14global: introduce `USE_THE_REPOSITORY_VARIABLE` macroPatrick Steinhardt1-0/+3
2024-06-14hash: require hash algorithm in `is_empty_{blob,tree}_oid()`Patrick Steinhardt1-1/+1
2024-06-14hash: require hash algorithm in `oidread()` and `oidclr()`Patrick Steinhardt1-3/+5
2024-06-14hash: require hash algorithm in `hasheq()`, `hashcmp()` and `hashclr()`Patrick Steinhardt1-4/+4
2024-06-14hash: drop (mostly) unused `is_empty_{blob,tree}_sha1()` functionsPatrick Steinhardt1-1/+1
2024-05-17refs: refactor `resolve_gitlink_ref()` to accept a repositoryPatrick Steinhardt1-2/+3
2024-04-29Sync with 2.44.1Johannes Schindelin1-53/+19
2024-04-19Sync with 2.43.4Johannes Schindelin1-53/+19
2024-04-19Sync with 2.42.2Johannes Schindelin1-53/+19
2024-04-19Sync with 2.41.1Johannes Schindelin1-53/+19
2024-04-19Sync with 2.40.2Johannes Schindelin1-53/+19
2024-04-19Sync with 2.39.4Johannes Schindelin1-53/+19
2024-04-17has_dir_name(): do not get confused by characters < '/'Filip Hejsek1-53/+19
2024-04-03revision: optionally record matches with pathspec elementsJunio C Hamano1-3/+5
2024-01-08Merge branch 'en/header-cleanup'Junio C Hamano1-2/+0
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-2/+0
2023-09-15cache: add fake_lstat()Junio C Hamano1-0/+27
2023-07-17Merge branch 'cw/compat-util-header-cleanup'Junio C Hamano1-2/+0
2023-07-08Merge branch 'js/empty-index-fixes'Junio C Hamano1-6/+9
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-29split-index: accept that a base index can be emptyJohannes Schindelin1-6/+8
2023-06-29do_read_index(): always mark index as initialized unless erroring outJohannes Schindelin1-0/+1
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-1/+1
2023-06-21read-cache*.h: move declarations for read-cache.c functions from cache.hElijah Newren1-0/+1
2023-06-21preload-index.h: move declarations for preload-index.c from elsewhereElijah Newren1-0/+1
2023-06-21name-hash.h: move declarations for name-hash.c from cache.hElijah Newren1-0/+1
2023-06-21statinfo: move stat_{data,validity} functions from cache/read-cacheElijah Newren1-84/+0
2023-06-21read-cache: move shared add/checkout/commit codeElijah Newren1-0/+102
2023-06-21read-cache: move shared commit and ls-files codeElijah Newren1-0/+137
2023-05-09Merge branch 'en/header-split-cache-h-part-2'Junio C Hamano1-68/+13
2023-04-25Merge branch 'en/header-split-cache-h'Junio C Hamano1-0/+5
2023-04-24commit.h: reduce unnecessary includesElijah Newren1-0/+1
2023-04-24cache,tree: move basic name compare functions from read-cache to treeElijah Newren1-68/+0
2023-04-24cache,tree: move cmp_cache_name_compare from tree.[ch] to read-cache.cElijah Newren1-1/+12
2023-04-24symlinks.h: move declarations for symlinks.c functions from cache.hElijah Newren1-0/+1
2023-04-11object-file.h: move declarations for object-file.c functions from cache.hElijah Newren1-0/+1
2023-04-11object-name.h: move declarations for object-name.c functions from cache.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on mem-pool.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 trace.h & trace2.hElijah Newren1-0/+1
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-0/+3
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-4/+5
2023-04-04Merge branch 'js/split-index-fixes'Junio C Hamano1-17/+32
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-4/+5
2023-03-28libs: use "struct repository *" argument, not "the_repository"Ævar Arnfjörð Bjarmason1-2/+2
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-2/+3
2023-03-28cocci: apply the "cache.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-27split-index; stop abusing the `base_oid` to strip the "link" extensionJohannes Schindelin1-17/+32
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-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
2023-02-15Merge branch 'rs/size-t-fixes'Junio C Hamano1-6/+7
2023-02-06read-cache: use size_t for {base,df}_name_compare()René Scharfe1-6/+7
2023-01-17treewide: always have a valid "index_state.repo" memberÆvar Arnfjörð Bjarmason1-12/+5
2023-01-17Merge branch 'ab/cache-api-cleanup' into ab/cache-api-cleanup-usersJunio C Hamano1-19/+24
2023-01-16Merge branch 'ds/omit-trailing-hash-in-index'Junio C Hamano1-1/+13
2023-01-16cache API: add a "INDEX_STATE_INIT" macro/function, add release_index()Ævar Arnfjörð Bjarmason1-13/+18
2023-01-13read-cache.c: refactor set_new_index_sparsity() for subsequent commitÆvar Arnfjörð Bjarmason1-6/+6
2023-01-07features: feature.manyFiles implies fast index writesDerrick Stolee1-1/+2
2023-01-07read-cache: add index.skipHash config optionDerrick Stolee1-1/+12
2022-12-14Merge branch 'ab/various-leak-fixes'Junio C Hamano1-0/+5
2022-11-21read-cache.c: clear and free "sparse_checkout_patterns"Ævar Arnfjörð Bjarmason1-0/+5
2022-11-21read-cache API & users: make discard_index() return voidÆvar Arnfjörð Bjarmason1-3/+1
2022-09-28read-cache: avoid misaligned reads in index v4Victoria Dye1-19/+42
2022-08-26Merge branch 'vd/sparse-reset-checkout-fixes' into maintJunio C Hamano1-0/+5
2022-08-10Merge branch 'tk/untracked-cache-with-uall' into maintJunio C Hamano1-0/+2
2022-08-08cache.h: create 'index_name_pos_sparse()'Victoria Dye1-0/+5
2022-07-22read-cache: make `do_read_index()` always set up `istate->repo`Martin Ågren1-1/+4
2022-06-16read_index_from(): avoid memory leakJohannes Schindelin1-3/+3
2022-06-13Merge branch 'zh/read-cache-copy-name-entry-fix'Junio C Hamano1-2/+0
2022-06-06read-cache.c: reduce unnecessary cache entry name copyingZheNing Hu1-2/+0
2022-06-03Merge branch 'ds/sparse-sparse-checkout'Junio C Hamano1-3/+3
2022-05-23sparse-index: introduce partially-sparse indexesDerrick Stolee1-3/+3
2022-05-10read-cache: set sparsity when index is newVictoria Dye1-1/+17
2022-04-04Merge branch 'vd/mv-refresh-stat'Junio C Hamano1-2/+15
2022-03-29mv: refresh stat info for moved entryVictoria Dye1-2/+15
2022-03-25Merge branch 'ns/core-fsyncmethod'Junio C Hamano1-6/+13
2022-03-16Merge branch 'ab/object-file-api-updates'Junio C Hamano1-1/+1
2022-03-10core.fsync: new option to harden the indexNeeraj Singh1-6/+13
2022-03-10core.fsync: introduce granular fsync control infrastructureNeeraj Singh1-1/+1
2022-02-25object-file API: have write_object_file() take "enum object_type"Ævar Arnfjörð Bjarmason1-1/+1
2022-02-17Merge branch 'vd/sparse-clean-etc'Junio C Hamano1-3/+7
2022-02-09Merge branch 'js/sparse-vs-split-index'Junio C Hamano1-0/+3
2022-02-09Merge branch 'ab/config-based-hooks-2'Junio C Hamano1-1/+2
2022-01-23split-index: it really is incompatible with the sparse indexJohannes Schindelin1-0/+3
2022-01-13update-index: integrate with sparse indexVictoria Dye1-3/+7
2022-01-07read-cache: convert post-index-change to use hook.hEmily Shaffer1-1/+2
2022-01-07update-index: refresh should rewrite index in case of racy timestampsMarc Strapetz1-1/+1
2021-12-10Merge branch 'vd/sparse-reset'Junio C Hamano1-7/+20
2021-12-10Merge branch 'vd/sparse-sparsity-fix-on-read'Junio C Hamano1-0/+8
2021-11-29reset: make sparse-aware (except --mixed)Victoria Dye1-7/+20
2021-11-24sparse-index: update do_read_index to ensure correct sparsityVictoria Dye1-0/+8
2021-10-25Merge branch 'rs/add-dry-run-without-objects'Junio C Hamano1-1/+1
2021-10-18Merge branch 'rs/make-verify-path-really-verify-again'Junio C Hamano1-15/+30
2021-10-12add: don't write objects with --dry-runRené Scharfe1-1/+1
2021-10-11Merge branch 'sg/test-split-index-fix'Junio C Hamano1-10/+27
2021-10-07read-cache: let verify_path() reject trailing dir separators againRené Scharfe1-3/+3
2021-10-07read-cache: add verify_path_internal()René Scharfe1-13/+28
2021-10-06Merge branch 'ab/repo-settings-cleanup'Junio C Hamano1-5/+14
2021-09-22repo-settings.c: simplify the setupÆvar Arnfjörð Bjarmason1-2/+6
2021-09-22read-cache & fetch-negotiator: check "enum" values in switch()Ævar Arnfjörð Bjarmason1-5/+10
2021-09-07read-cache: fix GIT_TEST_SPLIT_INDEXSZEDER Gábor1-9/+14
2021-09-07read-cache: look for shared index files next to the index, tooSZEDER Gábor1-1/+13
2021-09-07sparse-index: add SPARSE_INDEX_MEMORY_ONLY flagDerrick Stolee1-2/+2
2021-08-04Merge branch 'ah/plugleaks'Junio C Hamano1-0/+1
2021-08-02Merge branch 'jt/bulk-prefetch'Junio C Hamano1-0/+23
2021-07-28Merge branch 'ds/status-with-sparse-index'Junio C Hamano1-2/+8
2021-07-26read-cache: call diff_setup_done to avoid leakAndrzej Hunt1-0/+1
2021-07-23unpack-trees: refactor prefetching codeJonathan Tan1-0/+23
2021-07-16Merge branch 'ew/mmap-failures'Junio C Hamano1-1/+2
2021-07-14status: use sparse-index throughoutDerrick Stolee1-2/+8
2021-07-08Merge branch 'ab/progress-cleanup'Junio C Hamano1-6/+3
2021-06-29xmmap: inform Linux users of tuning knobs on ENOMEMEric Wong1-1/+2
2021-06-08read-cache.c: don't guard calls to progress.c APIÆvar Arnfjörð Bjarmason1-6/+3
2021-05-19read-cache: delete unused hashing methodsDerrick Stolee1-64/+0
2021-05-19read-cache: use hashfile instead of git_hash_ctxDerrick Stolee1-71/+66
2021-05-16Merge branch 'mt/parallel-checkout-part-3'Junio C Hamano1-4/+10
2021-05-10Merge branch 'bc/hash-transition-interop-part-1'Junio C Hamano1-2/+2
2021-05-07Merge branch 'mt/add-rm-in-sparse-checkout'Junio C Hamano1-0/+3
2021-05-07Merge branch 'ad/cygwin-no-backslashes-in-paths'Junio C Hamano1-1/+1
2021-05-05make_transient_cache_entry(): optionally alloc from mem_poolMatheus Tavares1-4/+10
2021-04-30Merge branch 'ds/sparse-index-protections'Junio C Hamano1-7/+72
2021-04-30cygwin: disallow backslashes in file namesAdam Dinwoodie1-1/+1
2021-04-27Always use oidread to read into struct object_idbrian m. carlson1-2/+2
2021-04-14read-cache: ensure full indexDerrick Stolee1-0/+4
2021-04-14read-cache: expand on query into sparse-directory entryDerrick Stolee1-0/+21
2021-04-14*: remove 'const' qualifier for struct index_stateDerrick Stolee1-5/+5
2021-04-08refresh_index(): add flag to ignore SKIP_WORKTREE entriesMatheus Tavares1-0/+3
2021-03-30sparse-index: convert from full to sparseDerrick Stolee1-2/+24
2021-03-30sparse-index: add 'sdir' index extensionDerrick Stolee1-0/+9
2021-03-30sparse-index: implement ensure_full_index()Derrick Stolee1-0/+9
2021-03-19Merge branch 'rs/calloc-array'Junio C Hamano1-4/+4
2021-03-19Merge branch 'js/fsmonitor-unpack-fix'Junio C Hamano1-0/+1
2021-03-17fsmonitor: do not forget to release the token in `discard_index()`Johannes Schindelin1-0/+1
2021-03-13use CALLOC_ARRAYRené Scharfe1-4/+4
2021-03-01Merge branch 'ns/raise-write-index-buffer-size'Junio C Hamano1-1/+1
2021-03-01Merge branch 'jh/fsmonitor-prework'Junio C Hamano1-3/+21
2021-02-24read-cache: make the index write buffer size 128KNeeraj Singh1-1/+1
2021-02-16read-cache: log the number of scanned files to trace2Jeff Hostetler1-3/+10
2021-02-16read-cache: log the number of lstat calls to trace2Jeff Hostetler1-3/+14
2021-01-06read-cache: try not to peek into `struct {lock_,temp}file`Martin Ågren1-6/+6
2020-09-06read-cache: fix mem-pool allocation for multi-threaded index loadingRené Scharfe1-1/+1
2020-08-18mem-pool: use more standard initialization and finalizationElijah Newren1-8/+13
2020-07-16read-cache: remove bogus shortcutRené Scharfe1-14/+0
2020-01-10Merge branch 'js/mingw-loosen-overstrict-tree-entry-checks'Junio C Hamano1-6/+6
2020-01-10mingw: safeguard better against backslashes in file namesJohannes Schindelin via GitGitGadget1-6/+6
2020-01-06Merge branch 'js/mingw-loosen-overstrict-tree-entry-checks'Junio C Hamano1-0/+5
2020-01-02mingw: only test index entries for backslashes, not tree entriesJohannes Schindelin1-0/+5