public interface Git
Modifier and Type | Method and Description |
---|---|
void |
addRemote(String remote,
String url) |
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,
List<String> branches,
org.eclipse.jgit.transport.CredentialsProvider credential,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders,
File hookDir) |
static Git |
clone(File repoDest,
String origin,
boolean isMirror,
List<String> branches,
org.eclipse.jgit.transport.CredentialsProvider credential,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders,
File hookDir,
boolean sslVerify) |
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) |
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 sslVerify) |
boolean |
commit(String branchName,
CommitInfo commitInfo,
boolean amend,
org.eclipse.jgit.lib.ObjectId originId,
CommitContent content) |
List<String> |
conflictBranchesChecker(String branchA,
String branchB) |
void |
convertRefTree() |
void |
createRef(String source,
String target) |
static Git |
createRepository(File repoDir) |
static Git |
createRepository(File repoDir,
boolean sslVerify) |
static Git |
createRepository(File repoDir,
File hookDir) |
static Git |
createRepository(File repoDir,
File hookDir,
boolean sslVerify) |
static Git |
createRepository(File repoDir,
File hookDir,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders) |
static Git |
createRepository(File repoDir,
File hookDir,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders,
boolean sslVerify) |
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,
Pair<String,String> remote,
Collection<org.eclipse.jgit.transport.RefSpec> refSpecs) |
static Git |
fork(File gitRepoContainerDir,
String origin,
String name,
List<String> branches,
org.eclipse.jgit.transport.CredentialsProvider credential,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders,
File hookDir) |
static Git |
fork(File gitRepoContainerDir,
String origin,
String name,
List<String> branches,
org.eclipse.jgit.transport.CredentialsProvider credential,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders,
File hookDir,
boolean sslVerify) |
void |
gc() |
org.eclipse.jgit.revwalk.RevCommit |
getCommit(String commitId) |
org.eclipse.jgit.revwalk.RevCommit |
getCommonAncestorCommit(String branchA,
String branchB) |
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.revwalk.RevCommit> |
listCommits(String startCommitId,
String endCommitId) |
List<org.eclipse.jgit.diff.DiffEntry> |
listDiffs(org.eclipse.jgit.lib.ObjectId refA,
org.eclipse.jgit.lib.ObjectId refB) |
List<org.eclipse.jgit.diff.DiffEntry> |
listDiffs(String startCommitId,
String endCommitId) |
List<PathInfo> |
listPathContent(String branchName,
String path) |
List<org.eclipse.jgit.lib.Ref> |
listRefs() |
Map<String,File> |
mapDiffContent(String branch,
String startCommitId,
String endCommitId) |
List<String> |
merge(String source,
String target) |
List<String> |
merge(String source,
String target,
boolean noFastForward,
boolean squash,
CommitInfo commitInfo) |
void |
push(org.eclipse.jgit.transport.CredentialsProvider credentialsProvider,
Pair<String,String> remote,
boolean force,
Collection<org.eclipse.jgit.transport.RefSpec> refSpecs) |
void |
refUpdate(String branch,
org.eclipse.jgit.revwalk.RevCommit commit) |
void |
removeRemote(String remote,
String ref) |
List<org.eclipse.jgit.lib.ObjectId> |
resolveObjectIds(String... commits) |
org.eclipse.jgit.revwalk.RevCommit |
resolveRevCommit(org.eclipse.jgit.lib.ObjectId objectId) |
boolean |
revertMerge(String source,
String target,
String commonAncestorCommitId,
String mergeCommitId) |
void |
setHeadAsInitialized() |
void |
squash(String branch,
String startCommit,
String commitMessage) |
void |
syncRemote(Pair<String,String> remote) |
List<TextualDiff> |
textualDiffRefs(String branchA,
String branchB) |
List<TextualDiff> |
textualDiffRefs(String branchA,
String branchB,
String commitIdBranchA,
String commitIdBranchB) |
void |
updateLeaders(org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders) |
List<org.eclipse.jgit.transport.RefSpec> |
updateRemoteConfig(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 createRepository(File repoDir, File hookDir, org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders, boolean sslVerify)
static Git fork(File gitRepoContainerDir, String origin, String name, List<String> branches, org.eclipse.jgit.transport.CredentialsProvider credential, org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders, File hookDir)
static Git fork(File gitRepoContainerDir, String origin, String name, List<String> branches, org.eclipse.jgit.transport.CredentialsProvider credential, org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders, File hookDir, boolean sslVerify)
static Git clone(File repoDest, String origin, boolean isMirror, List<String> branches, org.eclipse.jgit.transport.CredentialsProvider credential, org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders, File hookDir)
static Git clone(File repoDest, String origin, boolean isMirror, List<String> branches, org.eclipse.jgit.transport.CredentialsProvider credential, org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders, File hookDir, boolean sslVerify)
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)
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 sslVerify)
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, 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.InvalidRemoteException
void gc()
org.eclipse.jgit.revwalk.RevCommit getCommit(String commitId)
org.eclipse.jgit.revwalk.RevCommit getLastCommit(String refName)
org.eclipse.jgit.revwalk.RevCommit getLastCommit(org.eclipse.jgit.lib.Ref ref) throws IOException
IOException
org.eclipse.jgit.revwalk.RevCommit getCommonAncestorCommit(String branchA, String branchB)
CommitHistory listCommits(org.eclipse.jgit.lib.Ref ref, String path) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.GitAPIException
List<org.eclipse.jgit.revwalk.RevCommit> listCommits(String startCommitId, String endCommitId)
List<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, Pair<String,String> remote, Collection<org.eclipse.jgit.transport.RefSpec> refSpecs) throws org.eclipse.jgit.api.errors.InvalidRemoteException
org.eclipse.jgit.api.errors.InvalidRemoteException
void syncRemote(Pair<String,String> remote) throws org.eclipse.jgit.api.errors.InvalidRemoteException
org.eclipse.jgit.api.errors.InvalidRemoteException
List<String> merge(String source, String target, boolean noFastForward, boolean squash, CommitInfo commitInfo)
boolean revertMerge(String source, String target, String commonAncestorCommitId, String mergeCommitId)
void cherryPick(JGitPathImpl target, String... commits)
List<TextualDiff> textualDiffRefs(String branchA, String branchB)
List<TextualDiff> textualDiffRefs(String branchA, String branchB, String commitIdBranchA, String commitIdBranchB)
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)
Map<String,File> mapDiffContent(String branch, String startCommitId, String endCommitId)
InputStream blobAsInputStream(String treeRef, String path)
org.eclipse.jgit.revwalk.RevCommit getFirstCommit(org.eclipse.jgit.lib.Ref ref) throws IOException
IOException
List<org.eclipse.jgit.lib.Ref> listRefs()
org.eclipse.jgit.revwalk.RevCommit resolveRevCommit(org.eclipse.jgit.lib.ObjectId objectId) throws IOException
IOException
List<org.eclipse.jgit.transport.RefSpec> updateRemoteConfig(Pair<String,String> remote, Collection<org.eclipse.jgit.transport.RefSpec> refSpecs) throws IOException, URISyntaxException
IOException
URISyntaxException
boolean isHEADInitialized()
void setHeadAsInitialized()
void refUpdate(String branch, org.eclipse.jgit.revwalk.RevCommit commit) throws IOException, org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
IOException
org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
org.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–2020 JBoss by Red Hat. All rights reserved.