public class GitHelper
extends java.lang.Object
| Constructor and Description |
|---|
GitHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAndCommit(org.eclipse.jgit.api.Git git) |
static void |
applyDiff(org.eclipse.jgit.api.Git git,
java.io.InputStream inputStream) |
static void |
exportArchive(org.eclipse.jgit.api.Git git,
java.io.OutputStream outputStream) |
static void |
exportDiff(org.eclipse.jgit.api.Git git,
java.io.OutputStream outputStream) |
static int |
getCommitCount(org.eclipse.jgit.api.Git git) |
static java.util.List<java.lang.String> |
getTags(org.eclipse.jgit.api.Git git) |
static boolean |
isGitDirectory(java.nio.file.Path path) |
static void |
tag(org.eclipse.jgit.api.Git git,
java.lang.String name) |
public static boolean isGitDirectory(java.nio.file.Path path)
public static void exportArchive(org.eclipse.jgit.api.Git git,
java.io.OutputStream outputStream)
throws org.eclipse.jgit.api.errors.GitAPIException,
java.io.IOException
org.eclipse.jgit.api.errors.GitAPIExceptionjava.io.IOExceptionpublic static void exportDiff(org.eclipse.jgit.api.Git git,
java.io.OutputStream outputStream)
throws java.lang.Exception
java.lang.Exceptionpublic static void applyDiff(org.eclipse.jgit.api.Git git,
java.io.InputStream inputStream)
throws java.lang.Exception
java.lang.Exceptionpublic static void addAndCommit(org.eclipse.jgit.api.Git git)
throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIExceptionpublic static int getCommitCount(org.eclipse.jgit.api.Git git)
throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIExceptionpublic static void tag(org.eclipse.jgit.api.Git git,
java.lang.String name)
throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIExceptionpublic static java.util.List<java.lang.String> getTags(org.eclipse.jgit.api.Git git)
throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIException