Class LocalGitRepo
- java.lang.Object
-
- com.github.danielflower.mavenplugins.release.LocalGitRepo
-
public class LocalGitRepo extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocalGitRepo.Builder
-
Field Summary
Fields Modifier and Type Field Description org.eclipse.jgit.api.Gitgit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.eclipse.jgit.lib.Ref>allTags()voiderrorIfNotClean()List<String>getTags(List<String> tagNamesToSearchFor)booleanhasLocalTag(String tagName)booleanrevertChanges(org.apache.maven.plugin.logging.Log log, List<File> changedFiles)voidtagAndPushRepo(Collection<AnnotatedTag> tags)List<String>tagsFrom(List<AnnotatedTag> annotatedTags)
-
-
-
Method Detail
-
errorIfNotClean
public void errorIfNotClean() throws ValidationException- Throws:
ValidationException
-
revertChanges
public boolean revertChanges(org.apache.maven.plugin.logging.Log log, List<File> changedFiles) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
hasLocalTag
public boolean hasLocalTag(String tagName) throws org.eclipse.jgit.api.errors.GitAPIException
- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
tagAndPushRepo
public void tagAndPushRepo(Collection<AnnotatedTag> tags) throws org.eclipse.jgit.api.errors.GitAPIException
- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
tagsFrom
public List<String> tagsFrom(List<AnnotatedTag> annotatedTags) throws org.eclipse.jgit.api.errors.GitAPIException
- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
getTags
public List<String> getTags(List<String> tagNamesToSearchFor) throws org.eclipse.jgit.api.errors.GitAPIException
- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
allTags
public Collection<org.eclipse.jgit.lib.Ref> allTags() throws org.eclipse.jgit.api.errors.GitAPIException
- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
-