Merge branch 'stable-2.15' into stable-2.16

* stable-2.15:
  Use bazelisk as first choice for api.sh
  ProjectConfig: Add method to read from repository
  Remove buck related entries from .gitignore
  Replace references to bazel-genfiles with bazel-bin
  Set version to 2.14.21-SNAPSHOT

Change-Id: Ia6d9fe13f43e85514b6c5dce8cee1670d5dd8f12
This commit is contained in:
David Pursehouse
2019-10-17 00:25:26 +09:00
4 changed files with 18 additions and 5 deletions

View File

@@ -200,6 +200,14 @@ public class ProjectConfig extends VersionedMetaData implements ValidationError.
return r;
}
// TODO(dpursehouse): Add @UsedAt annotation
public static ProjectConfig read(Repository repo, Project.NameKey name)
throws IOException, ConfigInvalidException {
ProjectConfig r = new ProjectConfig(name);
r.load(repo);
return r;
}
public static CommentLinkInfoImpl buildCommentLink(Config cfg, String name, boolean allowRaw)
throws IllegalArgumentException {
String match = cfg.getString(COMMENTLINK, name, KEY_MATCH);