Class GitUtil

java.lang.Object
me.qoomon.gitversioning.commons.GitUtil

public final class GitUtil extends Object
  • Field Details

    • NO_COMMIT

      public static String NO_COMMIT
  • Constructor Details

    • GitUtil

      public GitUtil()
  • Method Details

    • status

      public static org.eclipse.jgit.api.Status status(org.eclipse.jgit.lib.Repository repository) throws org.eclipse.jgit.api.errors.GitAPIException
      Throws:
      org.eclipse.jgit.api.errors.GitAPIException
    • branch

      public static String branch(org.eclipse.jgit.lib.Repository repository) throws IOException
      Throws:
      IOException
    • tagsPointAt

      public static List<String> tagsPointAt(org.eclipse.jgit.lib.ObjectId revObjectId, org.eclipse.jgit.lib.Repository repository) throws IOException
      Throws:
      IOException
    • describe

      public static GitDescription describe(org.eclipse.jgit.lib.ObjectId revObjectId, Pattern tagPattern, org.eclipse.jgit.lib.Repository repository) throws IOException
      Throws:
      IOException
    • isShallowRepository

      public static boolean isShallowRepository(org.eclipse.jgit.lib.Repository repository)
    • tags

      public static List<org.eclipse.jgit.lib.Ref> tags(org.eclipse.jgit.lib.Repository repository) throws IOException
      Throws:
      IOException
    • reverseTagRefMap

      public static Map<org.eclipse.jgit.lib.ObjectId,List<String>> reverseTagRefMap(org.eclipse.jgit.lib.Repository repository) throws IOException
      Throws:
      IOException
    • revTimestamp

      public static ZonedDateTime revTimestamp(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId rev) throws IOException
      Throws:
      IOException