public class GitCommandHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GitCommandHelper.PushStatus |
Modifier and Type | Field and Description |
---|---|
protected static String |
FETCH_HEAD_TREE |
protected static String |
HEAD_TREE |
protected static String |
REMOTE_BRANCH_PREFIX |
protected static String |
REMOTES_PREFIX |
Constructor and Description |
---|
GitCommandHelper() |
Modifier and Type | Method and Description |
---|---|
void |
checkout(String commitOrBrunch,
org.eclipse.jgit.api.Git git) |
void |
cloneRepository(String repositoryPath,
org.eclipse.jgit.transport.CredentialsProvider credentialsProvider,
File emptyDirectory) |
boolean |
commit(Collection<VcsUpdate> vcsUpdates,
String commitMessage,
org.eclipse.jgit.api.Git git) |
static VcsUpdate.VcsUpdateType |
convertToVcsUpdateType(org.eclipse.jgit.diff.DiffEntry.ChangeType changeType) |
protected org.eclipse.jgit.api.Git |
createGitObject(String localPath) |
protected void |
fillLocalUpdates(com.eviware.soapui.impl.wsdl.WsdlProject project,
Collection<VcsUpdate> updates,
org.eclipse.jgit.api.Status status,
org.eclipse.jgit.lib.Repository repository) |
protected void |
fillRemoteUpdates(Collection<VcsUpdate> updates,
org.eclipse.jgit.api.Git git,
org.eclipse.jgit.lib.Repository repo,
org.eclipse.jgit.lib.ObjectReader reader) |
List<String> |
getBranchList(org.eclipse.jgit.api.Git git) |
String |
getCurrentBranch(org.eclipse.jgit.api.Git git) |
List<org.eclipse.jgit.diff.DiffEntry> |
getLocalFileChanges(org.eclipse.jgit.diff.DiffFormatter formatter,
org.eclipse.jgit.lib.ObjectReader reader,
org.eclipse.jgit.lib.Repository repository,
String filePath) |
String |
getRemoteRepositoryUrl(String projectPath) |
String |
getRemoteRepositoryUrl(com.eviware.soapui.impl.wsdl.WsdlProject project) |
protected Set<String> |
getTagSetFromRefList(List<org.eclipse.jgit.lib.Ref> refList) |
protected void |
gitCreateAndPushTag(String tagName,
org.eclipse.jgit.api.Git git) |
protected void |
gitFetch(org.eclipse.jgit.api.Git git) |
protected void |
gitFetch(org.eclipse.jgit.api.Git git,
boolean removeDeletedRefs) |
void |
gitFetchIfPossible(org.eclipse.jgit.api.Git gitObject) |
void |
gitFetchIfPossible(org.eclipse.jgit.api.Git gitObject,
boolean removeDeletedRefs) |
protected Iterable<org.eclipse.jgit.transport.PushResult> |
gitPush(org.eclipse.jgit.api.Git git) |
protected Iterable<org.eclipse.jgit.transport.PushResult> |
gitPushDryRun(org.eclipse.jgit.api.Git git) |
org.eclipse.jgit.api.Git |
initLocalRepository(File path) |
protected org.eclipse.jgit.merge.MergeStrategy |
promptForMergeStrategy() |
protected boolean |
pullWithMergeStrategy(org.eclipse.jgit.api.Git git,
org.eclipse.jgit.merge.MergeStrategy mergeStrategy) |
GitCommandHelper.PushStatus |
push(org.eclipse.jgit.api.Git git) |
boolean |
setRemoteRepository(com.eviware.soapui.impl.wsdl.WsdlProject project,
String uri,
org.eclipse.jgit.transport.CredentialsProvider credentialsProvider) |
protected static final String FETCH_HEAD_TREE
protected static final String HEAD_TREE
protected static final String REMOTES_PREFIX
protected static final String REMOTE_BRANCH_PREFIX
public void cloneRepository(String repositoryPath, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, File emptyDirectory) throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIException
public String getRemoteRepositoryUrl(com.eviware.soapui.impl.wsdl.WsdlProject project)
public boolean setRemoteRepository(com.eviware.soapui.impl.wsdl.WsdlProject project, String uri, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
protected void gitFetch(org.eclipse.jgit.api.Git git)
protected void gitFetch(org.eclipse.jgit.api.Git git, boolean removeDeletedRefs)
public void gitFetchIfPossible(org.eclipse.jgit.api.Git gitObject)
public void gitFetchIfPossible(org.eclipse.jgit.api.Git gitObject, boolean removeDeletedRefs)
protected void gitCreateAndPushTag(String tagName, org.eclipse.jgit.api.Git git) throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIException
public boolean commit(Collection<VcsUpdate> vcsUpdates, String commitMessage, org.eclipse.jgit.api.Git git)
public GitCommandHelper.PushStatus push(org.eclipse.jgit.api.Git git)
protected Iterable<org.eclipse.jgit.transport.PushResult> gitPushDryRun(org.eclipse.jgit.api.Git git)
protected Iterable<org.eclipse.jgit.transport.PushResult> gitPush(org.eclipse.jgit.api.Git git)
protected boolean pullWithMergeStrategy(org.eclipse.jgit.api.Git git, org.eclipse.jgit.merge.MergeStrategy mergeStrategy)
protected org.eclipse.jgit.api.Git createGitObject(String localPath)
protected org.eclipse.jgit.merge.MergeStrategy promptForMergeStrategy()
protected Set<String> getTagSetFromRefList(List<org.eclipse.jgit.lib.Ref> refList)
protected void fillRemoteUpdates(Collection<VcsUpdate> updates, org.eclipse.jgit.api.Git git, org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectReader reader) throws org.eclipse.jgit.api.errors.GitAPIException, IOException
org.eclipse.jgit.api.errors.GitAPIException
IOException
protected void fillLocalUpdates(com.eviware.soapui.impl.wsdl.WsdlProject project, Collection<VcsUpdate> updates, org.eclipse.jgit.api.Status status, org.eclipse.jgit.lib.Repository repository) throws IOException
IOException
public List<org.eclipse.jgit.diff.DiffEntry> getLocalFileChanges(org.eclipse.jgit.diff.DiffFormatter formatter, org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.lib.Repository repository, String filePath) throws IOException
IOException
public static VcsUpdate.VcsUpdateType convertToVcsUpdateType(org.eclipse.jgit.diff.DiffEntry.ChangeType changeType)
public org.eclipse.jgit.api.Git initLocalRepository(File path) throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIException
public String getCurrentBranch(org.eclipse.jgit.api.Git git)
public void checkout(String commitOrBrunch, org.eclipse.jgit.api.Git git)
Copyright © 2019. All rights reserved.