Package org.jreleaser.sdk.git
Class GitSdk
- java.lang.Object
-
- org.jreleaser.sdk.git.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 classGitSdk.TagComparator
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREFS_HEADSstatic java.lang.StringREFS_TAGS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteTag(java.lang.String tagName)static java.lang.StringextractHeadName(org.eclipse.jgit.lib.Ref ref)static java.lang.StringextractTagName(org.eclipse.jgit.lib.Ref tag)booleanfindTag(java.lang.String tagName)org.jreleaser.model.releaser.spi.RepositorygetRemote()org.jreleaser.model.releaser.spi.Commithead()static org.jreleaser.model.releaser.spi.Commithead(java.nio.file.Path basedir)static GitSdkof(java.io.File basedir)static GitSdkof(java.nio.file.Path basedir)static GitSdkof(org.jreleaser.model.JReleaserContext context)org.eclipse.jgit.api.Gitopen()voidtag(java.lang.String tagName, boolean force, org.jreleaser.model.JReleaserContext context)voidtag(java.lang.String tagName, org.jreleaser.model.JReleaserContext context)
-
-
-
Field Detail
-
REFS_TAGS
public static final java.lang.String REFS_TAGS
- See Also:
- Constant Field Values
-
REFS_HEADS
public static final java.lang.String REFS_HEADS
- See Also:
- Constant Field Values
-
-
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)
-
-