Class GitUtil

java.lang.Object
org.modelingvalue.gradle.mvgplugin.GitUtil

public class GitUtil extends Object
  • Field Details

  • Constructor Details

    • GitUtil

      public GitUtil()
  • Method Details

    • describe

      public static String describe(org.eclipse.jgit.api.Git git)
    • getAutomationIdent

      public static org.eclipse.jgit.lib.PersonIdent getAutomationIdent()
    • getCredentialProvider

      public static org.eclipse.jgit.transport.CredentialsProvider getCredentialProvider()
    • listTags

      public static List<String> listTags(Path root)
    • tag

      public static void tag(Path root, String tag)
    • untag

      public static void untag(Path root, String... tags)
    • getBranch

      public static String getBranch(Path root)
    • stageCommitPush

      public static void stageCommitPush(Path root, String message)
    • stageCommitPush

      public static void stageCommitPush(Path root, String message, Set<Path> changes)
    • stage

      public static boolean stage(org.eclipse.jgit.api.Git git, Set<Path> changes) throws org.eclipse.jgit.api.errors.GitAPIException, IOException
      Throws:
      org.eclipse.jgit.api.errors.GitAPIException
      IOException
    • commit

      public static void commit(org.eclipse.jgit.api.Git git, String message) throws org.eclipse.jgit.api.errors.GitAPIException
      Throws:
      org.eclipse.jgit.api.errors.GitAPIException
    • push

      public static void push(org.eclipse.jgit.api.Git git, boolean withTags) throws org.eclipse.jgit.api.errors.GitAPIException
      Throws:
      org.eclipse.jgit.api.errors.GitAPIException