| 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() |
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) |
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,
org.uberfire.commons.data.Pair<String,String> remote,
Collection<org.eclipse.jgit.transport.RefSpec> refSpecs) |
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) |
List<org.eclipse.jgit.revwalk.RevCommit> |
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) |
static <E extends Throwable,T> |
retryIfNeeded(Class<E> eclazz,
ThrowableSupplier<T> supplier) |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, createRepository, createRepository, createRepository, 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,
org.uberfire.commons.data.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 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 List<org.eclipse.jgit.revwalk.RevCommit> 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(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,
org.uberfire.commons.data.Pair<String,String> remote,
Collection<org.eclipse.jgit.transport.RefSpec> refSpecs)
throws org.eclipse.jgit.api.errors.InvalidRemoteException
public void syncRemote(org.uberfire.commons.data.Pair<String,String> remote) throws org.eclipse.jgit.api.errors.InvalidRemoteException
syncRemote in interface Gitorg.eclipse.jgit.api.errors.InvalidRemoteExceptionpublic void cherryPick(JGitPathImpl target, String... commits)
cherryPick in interface Gitpublic void cherryPick(String targetBranch, String[] commitsIDs)
cherryPick in interface Gitpublic 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(org.eclipse.jgit.lib.ObjectId refA, org.eclipse.jgit.lib.ObjectId refB)
public 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(org.uberfire.commons.data.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 static <E extends Throwable,T> T retryIfNeeded(Class<E> eclazz, ThrowableSupplier<T> supplier) throws E extends Throwable
E extends ThrowableCopyright © 2012–2018 JBoss by Red Hat. All rights reserved.