public interface Git
| Modifier and Type | Method and Description |
|---|---|
InputStream |
blobAsInputStream(String treeRef,
String path) |
void |
cherryPick(JGitPathImpl target,
String... commits) |
void |
cherryPick(String targetBranch,
String... commitsIDs) |
static Git |
clone(File repoDest,
String origin,
boolean isMirror,
org.eclipse.jgit.transport.CredentialsProvider credential,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders,
File hookDir) |
static Git |
cloneSubdirectory(File repoDest,
String origin,
String subdirectory,
List<String> branches,
org.eclipse.jgit.transport.CredentialsProvider credential,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders,
File hookDir) |
boolean |
commit(String branchName,
CommitInfo commitInfo,
boolean amend,
org.eclipse.jgit.lib.ObjectId originId,
CommitContent content) |
void |
convertRefTree() |
void |
createRef(String source,
String target) |
static Git |
createRepository(File repoDir) |
static Git |
createRepository(File repoDir,
File hookDir) |
static Git |
createRepository(File repoDir,
File hookDir,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders) |
void |
deleteRef(org.eclipse.jgit.lib.Ref ref) |
List<FileDiff> |
diffRefs(String branchA,
String branchB) |
void |
enableKetch() |
void |
fetch(org.eclipse.jgit.transport.CredentialsProvider credential,
org.uberfire.commons.data.Pair<String,String> remote,
Collection<org.eclipse.jgit.transport.RefSpec> refSpecs) |
static Git |
fork(File gitRepoContainerDir,
String origin,
String name,
org.eclipse.jgit.transport.CredentialsProvider credential,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders,
File hookDir) |
void |
gc() |
org.eclipse.jgit.revwalk.RevCommit |
getFirstCommit(org.eclipse.jgit.lib.Ref ref) |
org.eclipse.jgit.internal.ketch.KetchLeader |
getKetchLeader() |
org.eclipse.jgit.revwalk.RevCommit |
getLastCommit(org.eclipse.jgit.lib.Ref ref) |
org.eclipse.jgit.revwalk.RevCommit |
getLastCommit(String refName) |
PathInfo |
getPathInfo(String branchName,
String path) |
org.eclipse.jgit.lib.Ref |
getRef(String ref) |
org.eclipse.jgit.lib.Repository |
getRepository() |
org.eclipse.jgit.lib.ObjectId |
getTreeFromRef(String treeRef) |
boolean |
isHEADInitialized() |
boolean |
isKetchEnabled() |
List<org.eclipse.jgit.revwalk.RevCommit> |
listCommits(org.eclipse.jgit.lib.ObjectId startRange,
org.eclipse.jgit.lib.ObjectId endRange) |
CommitHistory |
listCommits(org.eclipse.jgit.lib.Ref ref,
String path) |
List<org.eclipse.jgit.diff.DiffEntry> |
listDiffs(org.eclipse.jgit.lib.ObjectId refA,
org.eclipse.jgit.lib.ObjectId refB) |
List<PathInfo> |
listPathContent(String branchName,
String path) |
List<org.eclipse.jgit.lib.Ref> |
listRefs() |
List<String> |
merge(String source,
String target) |
void |
push(org.eclipse.jgit.transport.CredentialsProvider credentialsProvider,
org.uberfire.commons.data.Pair<String,String> remote,
boolean force,
Collection<org.eclipse.jgit.transport.RefSpec> refSpecs) |
void |
refUpdate(String branch,
org.eclipse.jgit.revwalk.RevCommit commit) |
List<org.eclipse.jgit.lib.ObjectId> |
resolveObjectIds(String... commits) |
org.eclipse.jgit.revwalk.RevCommit |
resolveRevCommit(org.eclipse.jgit.lib.ObjectId objectId) |
void |
setHeadAsInitialized() |
void |
squash(String branch,
String startCommit,
String commitMessage) |
void |
syncRemote(org.uberfire.commons.data.Pair<String,String> remote) |
void |
updateLeaders(org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders) |
List<org.eclipse.jgit.transport.RefSpec> |
updateRemoteConfig(org.uberfire.commons.data.Pair<String,String> remote,
Collection<org.eclipse.jgit.transport.RefSpec> refSpecs) |
void |
updateRepo(org.eclipse.jgit.lib.Repository repo) |
static Git createRepository(File repoDir, File hookDir, org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders)
static Git fork(File gitRepoContainerDir, String origin, String name, org.eclipse.jgit.transport.CredentialsProvider credential, org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders, File hookDir)
static Git clone(File repoDest, String origin, boolean isMirror, org.eclipse.jgit.transport.CredentialsProvider credential, org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders, File hookDir)
static Git cloneSubdirectory(File repoDest, String origin, String subdirectory, List<String> branches, org.eclipse.jgit.transport.CredentialsProvider credential, org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders, File hookDir)
void convertRefTree()
void deleteRef(org.eclipse.jgit.lib.Ref ref)
org.eclipse.jgit.lib.Ref getRef(String ref)
void push(org.eclipse.jgit.transport.CredentialsProvider credentialsProvider,
org.uberfire.commons.data.Pair<String,String> remote,
boolean force,
Collection<org.eclipse.jgit.transport.RefSpec> refSpecs)
throws org.eclipse.jgit.api.errors.InvalidRemoteException
org.eclipse.jgit.api.errors.InvalidRemoteExceptionvoid gc()
org.eclipse.jgit.revwalk.RevCommit getLastCommit(String refName)
org.eclipse.jgit.revwalk.RevCommit getLastCommit(org.eclipse.jgit.lib.Ref ref)
throws IOException
IOExceptionCommitHistory listCommits(org.eclipse.jgit.lib.Ref ref, String path) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionList<org.eclipse.jgit.revwalk.RevCommit> listCommits(org.eclipse.jgit.lib.ObjectId startRange, org.eclipse.jgit.lib.ObjectId endRange)
org.eclipse.jgit.lib.Repository getRepository()
org.eclipse.jgit.lib.ObjectId getTreeFromRef(String treeRef)
void fetch(org.eclipse.jgit.transport.CredentialsProvider credential,
org.uberfire.commons.data.Pair<String,String> remote,
Collection<org.eclipse.jgit.transport.RefSpec> refSpecs)
throws org.eclipse.jgit.api.errors.InvalidRemoteException
org.eclipse.jgit.api.errors.InvalidRemoteExceptionvoid syncRemote(org.uberfire.commons.data.Pair<String,String> remote) throws org.eclipse.jgit.api.errors.InvalidRemoteException
org.eclipse.jgit.api.errors.InvalidRemoteExceptionvoid cherryPick(JGitPathImpl target, String... commits)
boolean commit(String branchName, CommitInfo commitInfo, boolean amend, org.eclipse.jgit.lib.ObjectId originId, CommitContent content)
List<org.eclipse.jgit.diff.DiffEntry> listDiffs(org.eclipse.jgit.lib.ObjectId refA, org.eclipse.jgit.lib.ObjectId refB)
InputStream blobAsInputStream(String treeRef, String path)
org.eclipse.jgit.revwalk.RevCommit getFirstCommit(org.eclipse.jgit.lib.Ref ref)
throws IOException
IOExceptionList<org.eclipse.jgit.lib.Ref> listRefs()
org.eclipse.jgit.revwalk.RevCommit resolveRevCommit(org.eclipse.jgit.lib.ObjectId objectId)
throws IOException
IOExceptionList<org.eclipse.jgit.transport.RefSpec> updateRemoteConfig(org.uberfire.commons.data.Pair<String,String> remote, Collection<org.eclipse.jgit.transport.RefSpec> refSpecs) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionboolean isHEADInitialized()
void setHeadAsInitialized()
void refUpdate(String branch, org.eclipse.jgit.revwalk.RevCommit commit) throws IOException, org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
IOExceptionorg.eclipse.jgit.api.errors.ConcurrentRefUpdateExceptionorg.eclipse.jgit.internal.ketch.KetchLeader getKetchLeader()
boolean isKetchEnabled()
void enableKetch()
void updateRepo(org.eclipse.jgit.lib.Repository repo)
void updateLeaders(org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders)
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.