List of usage examples for org.eclipse.jgit.lib ConfigConstants CONFIG_GC_SECTION
String CONFIG_GC_SECTION
To view the source code for org.eclipse.jgit.lib ConfigConstants CONFIG_GC_SECTION.
Click Source Link
From source file:com.google.gerrit.server.config.GcConfig.java
License:Apache License
@Inject GcConfig(@GerritServerConfig Config cfg) { scheduleConfig = new ScheduleConfig(cfg, ConfigConstants.CONFIG_GC_SECTION); aggressive = cfg.getBoolean(ConfigConstants.CONFIG_GC_SECTION, "aggressive", false); }
From source file:com.google.gerrit.server.git.GarbageCollection.java
License:Apache License
private static void logGcConfiguration(Project.NameKey projectName, Repository repo, boolean aggressive) { StringBuilder b = new StringBuilder(); Config cfg = repo.getConfig();/* w ww . j a v a 2s. c om*/ b.append("gc.aggressive=").append(aggressive).append("; "); b.append(formatConfigValues(cfg, ConfigConstants.CONFIG_GC_SECTION, null)); for (String subsection : cfg.getSubsections(ConfigConstants.CONFIG_GC_SECTION)) { b.append(formatConfigValues(cfg, ConfigConstants.CONFIG_GC_SECTION, subsection)); } if (b.length() == 0) { b.append("no set"); } logGcInfo(projectName, "gc config: " + b.toString()); logGcInfo(projectName, "pack config: " + (new PackConfig(repo)).toString()); }