aboutsummaryrefslogtreecommitdiffstats
path: root/read-cache.c
AgeCommit message (Expand)AuthorFilesLines
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
2019-12-09Sync with Git 2.24.1Junio C Hamano1-0/+11
2019-12-06Sync with 2.23.1Johannes Schindelin1-0/+11
2019-12-06Sync with 2.22.2Johannes Schindelin1-0/+11
2019-12-06Sync with 2.21.1Johannes Schindelin1-0/+11
2019-12-06Sync with 2.20.2Johannes Schindelin1-0/+11
2019-12-06Sync with 2.19.3Johannes Schindelin1-0/+11
2019-12-06Sync with 2.18.2Johannes Schindelin1-0/+11
2019-12-06Sync with 2.17.3Johannes Schindelin1-0/+11
2019-12-06Sync with 2.16.6Johannes Schindelin1-0/+11
2019-12-06Sync with 2.15.4Johannes Schindelin1-0/+11
2019-12-06Sync with 2.14.6Johannes Schindelin1-0/+11
2019-12-05mingw: refuse to access paths with trailing spaces or periodsJohannes Schindelin1-0/+3
2019-12-05is_ntfs_dotgit(): only verify the leading segmentJohannes Schindelin1-0/+8
2019-11-10Fix spelling errors in code commentsElijah Newren1-1/+1
2019-10-15Merge branch 'js/azure-pipelines-msvc'Junio C Hamano1-2/+2
2019-10-07Merge branch 'tg/stash-refresh-index'Junio C Hamano1-0/+21
2019-10-06msvc: avoid using minus operator on unsigned typesJohannes Schindelin1-2/+2
2019-09-20factor out refresh_and_write_cache functionThomas Gummerer1-0/+21
2019-09-09Merge branch 'ds/feature-macros'Junio C Hamano1-15/+15
2019-08-13repo-settings: parse core.untrackedCacheDerrick Stolee1-10/+9
2019-08-13repo-settings: consolidate some config settingsDerrick Stolee1-5/+6
2019-07-29Merge branch 'rs/avoid-overflow-in-midpoint-computation' into maintJunio C Hamano1-1/+1
2019-07-29Merge branch 'vn/xmmap-gently' into maintJunio C Hamano1-1/+1
2019-07-25Merge branch 'vn/xmmap-gently'Junio C Hamano1-1/+1
2019-07-14read-cache.c: do not die if mmap failsVarun Naik1-1/+1
2019-07-09Merge branch 'rs/avoid-overflow-in-midpoint-computation'Junio C Hamano1-1/+1
2019-06-17Merge branch 'js/fsmonitor-unflake'Junio C Hamano1-5/+5
2019-06-13Merge branch 'jk/unused-params-final-batch'Junio C Hamano1-2/+2
2019-06-13cleanup: fix possible overflow errors in binary search, part 2René Scharfe1-1/+1
2019-05-28mark_fsmonitor_valid(): mark the index as changed if neededJohannes Schindelin1-2/+2
2019-05-28fill_stat_cache_info(): prepare for an fsmonitor fixJohannes Schindelin1-3/+3
2019-05-19Merge branch 'js/fsmonitor-refresh-after-discarding-index'Junio C Hamano1-0/+1
2019-05-13Merge branch 'jh/trace2'Junio C Hamano1-1/+1
2019-05-13read-cache: drop unused parameter from threaded loadJeff King1-2/+2
2019-05-10trace2: fix up a missing "leave" entry pointÆvar Arnfjörð Bjarmason1-1/+1
2019-05-09Merge branch 'km/empty-repo-is-still-a-repo'Junio C Hamano1-0/+3
2019-05-08fsmonitor: force a refresh after the index was discardedJohannes Schindelin1-0/+1
2019-04-25Merge branch 'bc/hash-transition-16'Junio C Hamano1-45/+29
2019-04-25Merge branch 'bp/post-index-change-hook'Junio C Hamano1-2/+12
2019-04-10add: error appropriately on repository with no commitsKyle Meyer1-0/+3
2019-04-01read-cache: read data in a hash-independent waybrian m. carlson1-45/+29
2019-03-07Merge branch 'jh/trace2'Junio C Hamano1-1/+50
2019-03-07Merge branch 'nd/split-index-null-base-fix'Junio C Hamano1-2/+3
2019-03-07Merge branch 'tg/checkout-no-overlay'Junio C Hamano1-1/+7
2019-02-22trace2:data: add trace2 instrumentation to index read/writeJeff Hostetler1-1/+50
2019-02-15read-cache: add post-index-change hookBen Peart1-2/+12
2019-02-13read-cache.c: fix writing "link" index ext with null base oidNguyễn Thái Ngọc Duy1-2/+3
2019-02-06Merge branch 'jk/add-ignore-errors-bit-assignment-fix'Junio C Hamano1-1/+1
2019-02-06Merge branch 'nd/the-index-final'Junio C Hamano1-27/+17
2019-02-06add_to_index(): convert forgotten HASH_RENORMALIZE checkJeff King1-1/+1
2019-02-05Merge branch 'jk/add-ignore-errors-bit-assignment-fix'Junio C Hamano1-4/+4
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-2/+0
2019-01-17add: use separate ADD_CACHE_RENORMALIZE flagJeff King1-4/+4
2019-01-14Merge branch 'nd/indentation-fix'Junio C Hamano1-59/+59
2019-01-14read-cache.c: remove the_* from index_has_changes()Nguyễn Thái Ngọc Duy1-7/+5
2019-01-14read-cache.c: replace update_index_if_able with repo_&Nguyễn Thái Ngọc Duy1-6/+8
2019-01-14read-cache.c: kill read_index()Nguyễn Thái Ngọc Duy1-7/+4
2019-01-14repository.c: replace hold_locked_index() with repo_hold_locked_index()Nguyễn Thái Ngọc Duy1-5/+0
2019-01-04Merge branch 'nd/the-index'Junio C Hamano1-1/+1
2019-01-04Merge branch 'nd/i18n'Junio C Hamano1-36/+37