Package com.google.gerrit.server.project
Class ProjectLevelConfig
- java.lang.Object
-
- com.google.gerrit.server.project.ProjectLevelConfig
-
public class ProjectLevelConfig extends Object
Configuration file in the projects refs/meta/config branch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProjectLevelConfig.Bare
This class is a low-level API that allows callers to read the config directly from a repository and make updates to it.
-
Constructor Summary
Constructors Constructor Description ProjectLevelConfig(String fileName, ProjectState project, org.eclipse.jgit.lib.Config cfg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.lib.Config
get()
org.eclipse.jgit.lib.Config
getWithInheritance()
org.eclipse.jgit.lib.Config
getWithInheritance(boolean merge)
Get a Config that includes the values from all parent projects.
-
-
-
Constructor Detail
-
ProjectLevelConfig
public ProjectLevelConfig(String fileName, ProjectState project, org.eclipse.jgit.lib.Config cfg)
-
-
Method Detail
-
get
public org.eclipse.jgit.lib.Config get()
-
getWithInheritance
public org.eclipse.jgit.lib.Config getWithInheritance()
-
getWithInheritance
public org.eclipse.jgit.lib.Config getWithInheritance(boolean merge)
Get a Config that includes the values from all parent projects.Merging means that matching sections/subsection will be merged to include the values from both parent and child config.
No merging means that matching sections/subsections in the child project will replace the corresponding value from the parent.
- Parameters:
merge
- whether to merge parent values with child values or not.- Returns:
- a combined config.
-
-