org.kie.commons.java.nio.fs.jgit.util
public final class JGitUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JGitUtil.JGitPathInfo |
static class |
JGitUtil.PathType |
Modifier and Type | Method and Description |
---|---|
static List<org.eclipse.jgit.lib.Ref> |
branchList(org.eclipse.jgit.api.Git git) |
static List<org.eclipse.jgit.lib.Ref> |
branchList(org.eclipse.jgit.api.Git git,
org.eclipse.jgit.api.ListBranchCommand.ListMode listMode) |
static org.kie.commons.java.nio.base.version.VersionAttributes |
buildVersionAttributes(JGitFileSystem fs,
String branchName,
String path) |
static org.kie.commons.data.Pair<JGitUtil.PathType,org.eclipse.jgit.lib.ObjectId> |
checkPath(org.eclipse.jgit.api.Git git,
String branchName,
String path) |
static org.eclipse.jgit.api.Git |
cloneRepository(File repoFolder,
String fromURI,
boolean bare,
org.eclipse.jgit.transport.CredentialsProvider credentialsProvider) |
static void |
commit(org.eclipse.jgit.api.Git git,
String branchName,
String name,
String email,
String message,
TimeZone timeZone,
Date when,
Map<String,File> content) |
static void |
createBranch(org.eclipse.jgit.api.Git git,
String source,
String target) |
static void |
delete(org.eclipse.jgit.api.Git git,
String branchName,
String path,
String name,
String email,
String message,
TimeZone timeZone,
Date when) |
static void |
deleteBranch(org.eclipse.jgit.api.Git git,
org.eclipse.jgit.lib.Ref branch) |
static void |
fetchRepository(org.eclipse.jgit.api.Git git,
org.eclipse.jgit.transport.CredentialsProvider credentialsProvider,
org.eclipse.jgit.transport.RefSpec... refSpecs) |
static org.eclipse.jgit.lib.Ref |
getBranch(org.eclipse.jgit.api.Git git,
String name) |
static List<org.eclipse.jgit.diff.DiffEntry> |
getDiff(org.eclipse.jgit.lib.Repository repo,
org.eclipse.jgit.lib.ObjectId oldRef,
org.eclipse.jgit.lib.ObjectId newRef) |
static org.eclipse.jgit.lib.ObjectId |
getTreeRefObjectId(org.eclipse.jgit.lib.Repository repo,
String treeRef) |
static boolean |
hasBranch(org.eclipse.jgit.api.Git git,
String branchName) |
static List<JGitUtil.JGitPathInfo> |
listPathContent(org.eclipse.jgit.api.Git git,
String branchName,
String path) |
static org.eclipse.jgit.api.MergeResult |
mergeBranches(org.eclipse.jgit.api.Git git,
String source,
String target) |
static org.eclipse.jgit.api.Git |
newRepository(File repoFolder,
boolean bare) |
static InputStream |
resolveInputStream(org.eclipse.jgit.api.Git git,
String treeRef,
String path) |
static org.eclipse.jgit.lib.ObjectId |
resolveObjectId(org.eclipse.jgit.api.Git git,
String name) |
static JGitUtil.JGitPathInfo |
resolvePath(org.eclipse.jgit.api.Git git,
String branchName,
String path) |
static void |
syncRepository(org.eclipse.jgit.api.Git git,
org.eclipse.jgit.transport.CredentialsProvider credentialsProvider,
String origin,
boolean force) |
public static org.eclipse.jgit.api.Git newRepository(File repoFolder, boolean bare) throws org.kie.commons.java.nio.IOException
org.kie.commons.java.nio.IOException
public static List<org.eclipse.jgit.lib.Ref> branchList(org.eclipse.jgit.api.Git git)
public static List<org.eclipse.jgit.lib.Ref> branchList(org.eclipse.jgit.api.Git git, org.eclipse.jgit.api.ListBranchCommand.ListMode listMode)
public static InputStream resolveInputStream(org.eclipse.jgit.api.Git git, String treeRef, String path)
public static org.eclipse.jgit.api.Git cloneRepository(File repoFolder, String fromURI, boolean bare, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
public static void fetchRepository(org.eclipse.jgit.api.Git git, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, org.eclipse.jgit.transport.RefSpec... refSpecs) throws org.eclipse.jgit.api.errors.InvalidRemoteException
org.eclipse.jgit.api.errors.InvalidRemoteException
public static void syncRepository(org.eclipse.jgit.api.Git git, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, String origin, boolean force) throws org.eclipse.jgit.api.errors.InvalidRemoteException
org.eclipse.jgit.api.errors.InvalidRemoteException
public static void delete(org.eclipse.jgit.api.Git git, String branchName, String path, String name, String email, String message, TimeZone timeZone, Date when)
public static org.eclipse.jgit.lib.ObjectId getTreeRefObjectId(org.eclipse.jgit.lib.Repository repo, String treeRef)
public static List<org.eclipse.jgit.diff.DiffEntry> getDiff(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectId oldRef, org.eclipse.jgit.lib.ObjectId newRef)
public static void commit(org.eclipse.jgit.api.Git git, String branchName, String name, String email, String message, TimeZone timeZone, Date when, Map<String,File> content)
public static org.eclipse.jgit.lib.ObjectId resolveObjectId(org.eclipse.jgit.api.Git git, String name)
public static org.eclipse.jgit.lib.Ref getBranch(org.eclipse.jgit.api.Git git, String name)
public static void deleteBranch(org.eclipse.jgit.api.Git git, org.eclipse.jgit.lib.Ref branch)
public static org.kie.commons.java.nio.base.version.VersionAttributes buildVersionAttributes(JGitFileSystem fs, String branchName, String path)
public static void createBranch(org.eclipse.jgit.api.Git git, String source, String target)
public static boolean hasBranch(org.eclipse.jgit.api.Git git, String branchName)
public static org.kie.commons.data.Pair<JGitUtil.PathType,org.eclipse.jgit.lib.ObjectId> checkPath(org.eclipse.jgit.api.Git git, String branchName, String path)
public static JGitUtil.JGitPathInfo resolvePath(org.eclipse.jgit.api.Git git, String branchName, String path)
public static List<JGitUtil.JGitPathInfo> listPathContent(org.eclipse.jgit.api.Git git, String branchName, String path)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.