diff options
author | Derrick Stolee <derrickstolee@github.com> | 2023-01-06 19:31:56 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-01-07 01:46:14 +0300 |
commit | 17194b195d5db1cfd19af57e817c29bd3fa75c02 (patch) | |
tree | 848d5f854a3150f031fdb5d3b98466da09aaac8c /repository.h | |
parent | da9acde14ed4ea621b5db844630c1f620f24e110 (diff) |
features: feature.manyFiles implies fast index writes
The recent addition of the index.skipHash config option allows index
writes to speed up by skipping the hash computation for the trailing
checksum. This is particularly critical for repositories with many files
at HEAD, so add this config option to two cases where users in that
scenario may opt-in to such behavior:
1. The feature.manyFiles config option enables some options that are
helpful for repositories with many files at HEAD.
2. 'scalar register' and 'scalar reconfigure' set config options that
optimize for large repositories.
In both of these cases, set index.skipHash=true to gain this
speedup. Add tests that demonstrate the proper way that
index.skipHash=true can override feature.manyFiles=true.
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repository.h')
-rw-r--r-- | repository.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/repository.h b/repository.h index 6c461c5b9d..e8c67ffe16 100644 --- a/repository.h +++ b/repository.h @@ -42,6 +42,7 @@ struct repo_settings { struct fsmonitor_settings *fsmonitor; /* lazily loaded */ int index_version; + int index_skip_hash; enum untracked_cache_setting core_untracked_cache; int pack_use_sparse; |