Package com.google.gerrit.server.project
Class RefUtil
java.lang.Object
com.google.gerrit.server.project.RefUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getRefPrefix
(String refName) static String
normalizeTagRef
(String tag) Fully qualifies a tag name to refs/tags/TAG-NAMEstatic org.eclipse.jgit.lib.ObjectId
parseBaseRevision
(org.eclipse.jgit.lib.Repository repo, String baseRevision) static org.eclipse.jgit.revwalk.RevWalk
verifyConnected
(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectId baseRevision)
-
Method Details
-
parseBaseRevision
public static org.eclipse.jgit.lib.ObjectId parseBaseRevision(org.eclipse.jgit.lib.Repository repo, String baseRevision) throws UnprocessableEntityException, IOException -
verifyConnected
public static org.eclipse.jgit.revwalk.RevWalk verifyConnected(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectId baseRevision) throws BadRequestException, UnprocessableEntityException, IOException -
getRefPrefix
-
normalizeTagRef
Fully qualifies a tag name to refs/tags/TAG-NAME- Throws:
BadRequestException
-