Class RefUtil


  • public class RefUtil
    extends Object
    • Constructor Detail

      • RefUtil

        public RefUtil()
    • 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
      • getRefPrefix

        public static String getRefPrefix​(String refName)