Class GitSdk


  • public class GitSdk
    extends java.lang.Object
    Since:
    0.1.0
    Author:
    Andres Almiray
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GitSdk.TagComparator  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REFS_HEADS  
      static java.lang.String REFS_TAGS  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deleteTag​(java.lang.String tagName)  
      static java.lang.String extractHeadName​(org.eclipse.jgit.lib.Ref ref)  
      static java.lang.String extractTagName​(org.eclipse.jgit.lib.Ref tag)  
      boolean findTag​(java.lang.String tagName)  
      org.jreleaser.model.releaser.spi.Repository getRemote()  
      org.jreleaser.model.releaser.spi.Commit head()  
      static org.jreleaser.model.releaser.spi.Commit head​(java.nio.file.Path basedir)  
      static GitSdk of​(java.io.File basedir)  
      static GitSdk of​(java.nio.file.Path basedir)  
      static GitSdk of​(org.jreleaser.model.JReleaserContext context)  
      org.eclipse.jgit.api.Git open()  
      void tag​(java.lang.String tagName, boolean force, org.jreleaser.model.JReleaserContext context)  
      void tag​(java.lang.String tagName, org.jreleaser.model.JReleaserContext context)  
      • Methods inherited from class java.lang.Object

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

      • open

        public org.eclipse.jgit.api.Git open()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getRemote

        public org.jreleaser.model.releaser.spi.Repository getRemote()
                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • head

        public org.jreleaser.model.releaser.spi.Commit head()
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • deleteTag

        public void deleteTag​(java.lang.String tagName)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • findTag

        public boolean findTag​(java.lang.String tagName)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • tag

        public void tag​(java.lang.String tagName,
                        org.jreleaser.model.JReleaserContext context)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • tag

        public void tag​(java.lang.String tagName,
                        boolean force,
                        org.jreleaser.model.JReleaserContext context)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • of

        public static GitSdk of​(org.jreleaser.model.JReleaserContext context)
      • of

        public static GitSdk of​(java.nio.file.Path basedir)
      • of

        public static GitSdk of​(java.io.File basedir)
      • head

        public static org.jreleaser.model.releaser.spi.Commit head​(java.nio.file.Path basedir)
                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • extractTagName

        public static java.lang.String extractTagName​(org.eclipse.jgit.lib.Ref tag)
      • extractHeadName

        public static java.lang.String extractHeadName​(org.eclipse.jgit.lib.Ref ref)