Class GitUtil


  • public class GitUtil
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  GitUtil.Function<T,​R>  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NO_CI_MESSAGE  
    • Constructor Summary

      Constructors 
      Constructor Description
      GitUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T calcWithGit​(java.nio.file.Path root, GitUtil.Function<org.eclipse.jgit.api.Git,​T> f)  
      static java.util.List<java.lang.String> getAllTags​(java.nio.file.Path root)  
      static java.lang.String getBranch​(java.nio.file.Path root)  
      static void push​(java.nio.file.Path root, java.util.Set<java.nio.file.Path> changes, java.lang.String message)  
      static void tag​(java.nio.file.Path root, java.lang.String tag)  
      static void untag​(java.nio.file.Path root, java.lang.String... tags)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GitUtil

        public GitUtil()
    • Method Detail

      • getAllTags

        public static java.util.List<java.lang.String> getAllTags​(java.nio.file.Path root)
      • getBranch

        public static java.lang.String getBranch​(java.nio.file.Path root)
      • push

        public static void push​(java.nio.file.Path root,
                                java.util.Set<java.nio.file.Path> changes,
                                java.lang.String message)
      • tag

        public static void tag​(java.nio.file.Path root,
                               java.lang.String tag)
      • untag

        public static void untag​(java.nio.file.Path root,
                                 java.lang.String... tags)
      • calcWithGit

        public static <T> T calcWithGit​(java.nio.file.Path root,
                                        GitUtil.Function<org.eclipse.jgit.api.Git,​T> f)