repo-settings: create feature.manyFiles setting
The feature.manyFiles setting is suitable for repos with many files in the working directory. By setting index.version=4 and core.untrackedCache=true, commands such as 'git status' should improve. While adding this setting, modify the index version precedence tests to check how this setting overrides the default for index.version is unset. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
ad0fb65999
commit
c6cc4c5afd
@ -86,7 +86,9 @@ core.untrackedCache::
|
||||
it will automatically be removed, if set to `false`. Before
|
||||
setting it to `true`, you should check that mtime is working
|
||||
properly on your system.
|
||||
See linkgit:git-update-index[1]. `keep` by default.
|
||||
See linkgit:git-update-index[1]. `keep` by default, unless
|
||||
`feature.manyFiles` is enabled which sets this setting to
|
||||
`true` by default.
|
||||
|
||||
core.checkStat::
|
||||
When missing or is set to `default`, many fields in the stat
|
||||
|
15
Documentation/config/feature.txt
Normal file
15
Documentation/config/feature.txt
Normal file
@ -0,0 +1,15 @@
|
||||
feature.*::
|
||||
The config settings that start with `feature.` modify the defaults of
|
||||
a group of other config settings. These groups are created by the Git
|
||||
developer community as recommended defaults and are subject to change.
|
||||
In particular, new config options may be added with different defaults.
|
||||
|
||||
feature.manyFiles::
|
||||
Enable config options that optimize for repos with many files in the
|
||||
working directory. With many files, commands such as `git status` and
|
||||
`git checkout` may be slow and these new defaults improve performance:
|
||||
+
|
||||
* `index.version=4` enables path-prefix compression in the index.
|
||||
+
|
||||
* `core.untrackedCache=true` enables the untracked cache. This setting assumes
|
||||
that mtime is working on your machine.
|
@ -24,3 +24,4 @@ index.threads::
|
||||
index.version::
|
||||
Specify the version with which new index files should be
|
||||
initialized. This does not affect existing repositories.
|
||||
If `feature.manyFiles` is enabled, then the default is 4.
|
||||
|
Reference in New Issue
Block a user