Package com.google.gerrit.server.project
Class RefUtil
- java.lang.Object
-
- com.google.gerrit.server.project.RefUtil
-
public class RefUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description RefUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getRefPrefix(String refName)
static String
normalizeTagRef(String tag)
static org.eclipse.jgit.lib.ObjectId
parseBaseRevision(org.eclipse.jgit.lib.Repository repo, Project.NameKey projectName, String baseRevision)
static org.eclipse.jgit.revwalk.RevWalk
verifyConnected(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectId revid)
-
-
-
Method Detail
-
parseBaseRevision
public static org.eclipse.jgit.lib.ObjectId parseBaseRevision(org.eclipse.jgit.lib.Repository repo, Project.NameKey projectName, String baseRevision) throws com.google.gerrit.server.project.RefUtil.InvalidRevisionException
- Throws:
com.google.gerrit.server.project.RefUtil.InvalidRevisionException
-
verifyConnected
public static org.eclipse.jgit.revwalk.RevWalk verifyConnected(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectId revid) throws com.google.gerrit.server.project.RefUtil.InvalidRevisionException
- Throws:
com.google.gerrit.server.project.RefUtil.InvalidRevisionException
-
normalizeTagRef
public static String normalizeTagRef(String tag) throws BadRequestException
- Throws:
BadRequestException
-
-