git: support more options for intellij.yaml

support core.fsmonitor, core.untrackedcache, feature.manyFiles for much faster git status and other operations

enabled feature.manyFiles ensures that relevant future performance options will be automatically enabled as well

GitOrigin-RevId: d34043e4dc0d0bbfb464870e17cce4247a5ad55a
This commit is contained in:
Leonid Shalupov
2023-05-27 19:41:40 +02:00
committed by intellij-monorepo-bot
parent f6bb4f4c4d
commit c286804ff3
3 changed files with 13 additions and 2 deletions

View File

@@ -7,6 +7,9 @@ versionControl:
updateMethod: rebase
gcAuto: "50000"
coreLongpaths: "true"
coreFsMonitor: "true"
coreUntrackedCache: "true"
featureManyFiles: "true"
sharedIndex:
project:

View File

@@ -35,7 +35,9 @@ internal class GitSetupProjectConfig : ProjectActivity {
private enum class ConfigVariables(val gitName: String, val settingsGetter: (GitVcsOptions) -> String?) {
GC_AUTO("gc.auto", { it.gcAuto }),
CORE_LONGPATHS("core.longpaths", { if (SystemInfo.isWindows) it.coreLongpaths else null })
CORE_FS_MONITOR("core.fsmonitor", { it.coreFsMonitor }),
CORE_UNTRACKED_CACHE("core.untrackedcache", { it.coreUntrackedCache }),
CORE_LONGPATHS("core.longpaths", { if (SystemInfo.isWindows) it.coreLongpaths else null }),
FEATURE_MANY_FILES("feature.manyFiles", { it.featureManyFiles }),
}
}

View File

@@ -29,6 +29,12 @@ class GitVcsOptions : BaseState() {
var gcAuto by string()
@com.intellij.configurationStore.Property(description = "core.longpaths")
var coreLongpaths by string()
@com.intellij.configurationStore.Property(description = "core.untrackedcache")
var coreUntrackedCache by string()
@com.intellij.configurationStore.Property(description = "core.fsmonitor")
var coreFsMonitor by string()
@com.intellij.configurationStore.Property(description = "feature.manyFiles")
var featureManyFiles by string()
@get:OptionTag("PUSH_AUTO_UPDATE")
var isPushAutoUpdate by property(false)