List of usage examples for org.eclipse.jgit.lib Config get
@SuppressWarnings("unchecked") public <T> T get(SectionParser<T> parser)
From source file:com.google.gerrit.server.GerritPersonIdentProvider.java
License:Apache License
@Inject public GerritPersonIdentProvider(@GerritServerConfig final Config cfg) { String name = cfg.getString("user", null, "name"); if (name == null) { name = "Gerrit Code Review"; }// w ww . j a va 2s.c o m this.name = name; email = cfg.get(UserConfig.KEY).getCommitterEmail(); }
From source file:com.google.gitiles.doc.MarkdownConfig.java
License:Apache License
public static MarkdownConfig get(Config cfg) { return cfg.get(CONFIG_PARSER); }