public class GitSdk
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GitSdk.TagComparator |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REFS_TAGS |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTag(java.lang.String tagName) |
static java.lang.String |
extractTagName(org.eclipse.jgit.lib.Ref tag) |
org.jreleaser.model.releaser.spi.Commit |
head() |
static org.jreleaser.model.releaser.spi.Commit |
head(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) |
void |
tag(java.lang.String tagName,
boolean force) |
public static final java.lang.String REFS_TAGS
public org.eclipse.jgit.api.Git open()
throws java.io.IOException
java.io.IOExceptionpublic org.jreleaser.model.releaser.spi.Commit head()
throws java.io.IOException
java.io.IOExceptionpublic void deleteTag(java.lang.String tagName)
throws java.io.IOException
java.io.IOExceptionpublic void tag(java.lang.String tagName)
throws java.io.IOException
java.io.IOExceptionpublic void tag(java.lang.String tagName,
boolean force)
throws java.io.IOException
java.io.IOExceptionpublic static GitSdk of(org.jreleaser.model.JReleaserContext context)
public static org.jreleaser.model.releaser.spi.Commit head(java.nio.file.Path basedir)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String extractTagName(org.eclipse.jgit.lib.Ref tag)