Ejemplo n.º 1
0
 /// <summary>
 /// Update properties by setting fields from the configuration.
 /// <para />
 /// If a property is not defined in the configuration, then it is left
 /// unmodified.
 /// </summary>
 /// <param name="rc">Configuration to read properties from.</param>
 public void FromConfig(RepositoryConfig rc)
 {
     PackedGitOpenFiles  = rc.getInt("core", null, "packedgitopenfiles", PackedGitOpenFiles);
     PackedGitLimit      = rc.getLong("core", null, "packedgitlimit", PackedGitLimit);
     PackedGitWindowSize = rc.getInt("core", null, "packedgitwindowsize", PackedGitWindowSize);
     PackedGitMMAP       = rc.getBoolean("core", null, "packedgitmmap", PackedGitMMAP);
     DeltaBaseCacheLimit = rc.getInt("core", null, "deltabasecachelimit", DeltaBaseCacheLimit);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update properties by setting fields from the configuration.
 /// <para />
 /// If a property is not defined in the configuration, then it is left
 /// unmodified.
 /// </summary>
 /// <param name="rc">Configuration to read properties from.</param>
 public void FromConfig(RepositoryConfig rc)
 {
     PackedGitOpenFiles = rc.getInt("core", null, "packedgitopenfiles", PackedGitOpenFiles);
     PackedGitLimit = rc.getInt("core", null, "packedgitlimit", PackedGitLimit);
     PackedGitWindowSize = rc.getInt("core", null, "packedgitwindowsize", PackedGitWindowSize);
     PackedGitMMAP = rc.getBoolean("core", null, "packedgitmmap", PackedGitMMAP);
     DeltaBaseCacheLimit = rc.getInt("core", null, "deltabasecachelimit", DeltaBaseCacheLimit);
 }