| Constructor and Description |
|---|
GitImpl(org.eclipse.jgit.api.Git git) |
GitImpl(org.eclipse.jgit.api.Git git,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.api.AddCommand |
_add() |
org.eclipse.jgit.api.CreateBranchCommand |
_branchCreate() |
org.eclipse.jgit.api.DeleteBranchCommand |
_branchDelete() |
org.eclipse.jgit.api.ListBranchCommand |
_branchList() |
static org.eclipse.jgit.api.CloneCommand |
_cloneRepository() |
org.eclipse.jgit.api.CommitCommand |
_commit() |
org.eclipse.jgit.api.FetchCommand |
_fetch() |
org.eclipse.jgit.api.GarbageCollectCommand |
_gc() |
org.eclipse.jgit.api.LogCommand |
_log() |
org.eclipse.jgit.api.PushCommand |
_push() |
org.eclipse.jgit.api.RemoteListCommand |
_remoteList() |
void |
addRemote(String remote,
String url) |
InputStream |
blobAsInputStream(String treeRef,
String path) |
void |
cherryPick(JGitPathImpl target,
String... commits) |
void |
cherryPick(String targetBranch,
String... commitsIDs) |
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) |
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) |
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) |
boolean |
resetWithSquash(String commitMessage) |
boolean |
resetWithSquash(String branch,
String commitMessage) |
List<org.eclipse.jgit.lib.ObjectId> |
resolveObjectIds(String... commits) |
org.eclipse.jgit.revwalk.RevCommit |
resolveRevCommit(org.eclipse.jgit.lib.ObjectId objectId) |
static <E extends Throwable,T> |
retryIfNeeded(Class<E> eclazz,
ThrowableSupplier<T> supplier) |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, clone, cloneSubdirectory, cloneSubdirectory, createRepository, createRepository, createRepository, createRepository, createRepository, createRepository, fork, forkpublic GitImpl(org.eclipse.jgit.api.Git git)
public GitImpl(org.eclipse.jgit.api.Git git,
org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders)
public void convertRefTree()
convertRefTree in interface Gitpublic void deleteRef(org.eclipse.jgit.lib.Ref ref)
public 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
public org.eclipse.jgit.revwalk.RevCommit getCommit(String commitId)
public org.eclipse.jgit.revwalk.RevCommit getLastCommit(String refName)
getLastCommit in interface Gitpublic org.eclipse.jgit.revwalk.RevCommit getLastCommit(org.eclipse.jgit.lib.Ref ref)
throws IOException
getLastCommit in interface GitIOExceptionpublic org.eclipse.jgit.revwalk.RevCommit getCommonAncestorCommit(String branchA, String branchB)
getCommonAncestorCommit in interface Gitpublic CommitHistory listCommits(org.eclipse.jgit.lib.Ref ref, String path) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
listCommits in interface GitIOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic List<org.eclipse.jgit.revwalk.RevCommit> listCommits(String startCommitId, String endCommitId)
listCommits in interface Gitpublic List<org.eclipse.jgit.revwalk.RevCommit> listCommits(org.eclipse.jgit.lib.ObjectId startRange, org.eclipse.jgit.lib.ObjectId endRange)
listCommits in interface Gitpublic org.eclipse.jgit.lib.Repository getRepository()
getRepository in interface Gitpublic org.eclipse.jgit.api.DeleteBranchCommand _branchDelete()
public org.eclipse.jgit.api.ListBranchCommand _branchList()
public org.eclipse.jgit.api.CreateBranchCommand _branchCreate()
public org.eclipse.jgit.api.FetchCommand _fetch()
public org.eclipse.jgit.api.GarbageCollectCommand _gc()
public org.eclipse.jgit.api.PushCommand _push()
public org.eclipse.jgit.lib.ObjectId getTreeFromRef(String treeRef)
getTreeFromRef in interface Gitpublic 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
public void syncRemote(Pair<String,String> remote) throws org.eclipse.jgit.api.errors.InvalidRemoteException
syncRemote in interface Gitorg.eclipse.jgit.api.errors.InvalidRemoteExceptionpublic List<String> merge(String source, String target, boolean noFastForward, boolean squash, CommitInfo commitInfo)
public boolean revertMerge(String source, String target, String commonAncestorCommitId, String mergeCommitId)
revertMerge in interface Gitpublic void cherryPick(JGitPathImpl target, String... commits)
cherryPick in interface Gitpublic void cherryPick(String targetBranch, String... commitsIDs)
cherryPick in interface Gitpublic List<TextualDiff> textualDiffRefs(String branchA, String branchB)
textualDiffRefs in interface Gitpublic List<TextualDiff> textualDiffRefs(String branchA, String branchB, String commitIdBranchA, String commitIdBranchB)
textualDiffRefs in interface Gitpublic List<String> conflictBranchesChecker(String branchA, String branchB)
conflictBranchesChecker in interface Gitpublic boolean resetWithSquash(String commitMessage) throws IOException
resetWithSquash in interface GitIOExceptionpublic boolean resetWithSquash(String branch, String commitMessage) throws IOException
resetWithSquash in interface GitIOExceptionpublic org.eclipse.jgit.api.LogCommand _log()
public boolean commit(String branchName, CommitInfo commitInfo, boolean amend, org.eclipse.jgit.lib.ObjectId originId, CommitContent content)
public List<org.eclipse.jgit.diff.DiffEntry> listDiffs(String startCommitId, String endCommitId)
public List<org.eclipse.jgit.diff.DiffEntry> listDiffs(org.eclipse.jgit.lib.ObjectId refA, org.eclipse.jgit.lib.ObjectId refB)
public Map<String,File> mapDiffContent(String branch, String startCommitId, String endCommitId)
mapDiffContent in interface Gitpublic InputStream blobAsInputStream(String treeRef, String path)
blobAsInputStream in interface Gitpublic org.eclipse.jgit.revwalk.RevCommit getFirstCommit(org.eclipse.jgit.lib.Ref ref)
throws IOException
getFirstCommit in interface GitIOExceptionpublic List<org.eclipse.jgit.lib.ObjectId> resolveObjectIds(String... commits)
resolveObjectIds in interface Gitpublic org.eclipse.jgit.revwalk.RevCommit resolveRevCommit(org.eclipse.jgit.lib.ObjectId objectId)
throws IOException
resolveRevCommit in interface GitIOExceptionpublic List<org.eclipse.jgit.transport.RefSpec> updateRemoteConfig(Pair<String,String> remote, Collection<org.eclipse.jgit.transport.RefSpec> refSpecs) throws IOException, URISyntaxException
updateRemoteConfig in interface GitIOExceptionURISyntaxExceptionpublic org.eclipse.jgit.api.AddCommand _add()
public org.eclipse.jgit.api.CommitCommand _commit()
public org.eclipse.jgit.api.RemoteListCommand _remoteList()
public static org.eclipse.jgit.api.CloneCommand _cloneRepository()
public PathInfo getPathInfo(String branchName, String path)
getPathInfo in interface Gitpublic List<PathInfo> listPathContent(String branchName, String path)
listPathContent in interface Gitpublic boolean isHEADInitialized()
isHEADInitialized in interface Gitpublic void setHeadAsInitialized()
setHeadAsInitialized in interface Gitpublic void refUpdate(String branch, org.eclipse.jgit.revwalk.RevCommit commit) throws IOException, org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
refUpdate in interface GitIOExceptionorg.eclipse.jgit.api.errors.ConcurrentRefUpdateExceptionpublic org.eclipse.jgit.internal.ketch.KetchLeader getKetchLeader()
getKetchLeader in interface Gitpublic boolean isKetchEnabled()
isKetchEnabled in interface Gitpublic void enableKetch()
enableKetch in interface Gitpublic void updateRepo(org.eclipse.jgit.lib.Repository repo)
updateRepo in interface Gitpublic void updateLeaders(org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders)
updateLeaders in interface Gitpublic void removeRemote(String remote, String ref)
removeRemote in interface Gitpublic static <E extends Throwable,T> T retryIfNeeded(Class<E> eclazz, ThrowableSupplier<T> supplier) throws E extends Throwable
E extends ThrowableCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.