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) |
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) |
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, wait
clone, clone, cloneSubdirectory, cloneSubdirectory, createRepository, createRepository, createRepository, createRepository, createRepository, createRepository, fork, fork
public 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 Git
public 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 Git
public org.eclipse.jgit.revwalk.RevCommit getLastCommit(org.eclipse.jgit.lib.Ref ref) throws IOException
getLastCommit
in interface Git
IOException
public CommitHistory listCommits(org.eclipse.jgit.lib.Ref ref, String path) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
listCommits
in interface Git
IOException
org.eclipse.jgit.api.errors.GitAPIException
public List<org.eclipse.jgit.revwalk.RevCommit> listCommits(org.eclipse.jgit.lib.ObjectId startRange, org.eclipse.jgit.lib.ObjectId endRange)
listCommits
in interface Git
public org.eclipse.jgit.lib.Repository getRepository()
getRepository
in interface Git
public 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 Git
public 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 Git
org.eclipse.jgit.api.errors.InvalidRemoteException
public void cherryPick(JGitPathImpl target, String... commits)
cherryPick
in interface Git
public void cherryPick(String targetBranch, String... commitsIDs)
cherryPick
in interface Git
public 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 Git
public org.eclipse.jgit.revwalk.RevCommit getFirstCommit(org.eclipse.jgit.lib.Ref ref) throws IOException
getFirstCommit
in interface Git
IOException
public List<org.eclipse.jgit.lib.ObjectId> resolveObjectIds(String... commits)
resolveObjectIds
in interface Git
public org.eclipse.jgit.revwalk.RevCommit resolveRevCommit(org.eclipse.jgit.lib.ObjectId objectId) throws IOException
resolveRevCommit
in interface Git
IOException
public 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 Git
IOException
URISyntaxException
public 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 Git
public List<PathInfo> listPathContent(String branchName, String path)
listPathContent
in interface Git
public boolean isHEADInitialized()
isHEADInitialized
in interface Git
public void setHeadAsInitialized()
setHeadAsInitialized
in interface Git
public void refUpdate(String branch, org.eclipse.jgit.revwalk.RevCommit commit) throws IOException, org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
refUpdate
in interface Git
IOException
org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
public org.eclipse.jgit.internal.ketch.KetchLeader getKetchLeader()
getKetchLeader
in interface Git
public boolean isKetchEnabled()
isKetchEnabled
in interface Git
public void enableKetch()
enableKetch
in interface Git
public void updateRepo(org.eclipse.jgit.lib.Repository repo)
updateRepo
in interface Git
public void updateLeaders(org.eclipse.jgit.internal.ketch.KetchLeaderCache leaders)
updateLeaders
in interface Git
public static <E extends Throwable,T> T retryIfNeeded(Class<E> eclazz, ThrowableSupplier<T> supplier) throws E extends Throwable
E extends Throwable
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.