Class DtPullResult
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.git.pull.DtPullResult
-
public class DtPullResult extends Object
Encapsulates the result of pull command with a rebase mode. Based onPullResult
-
-
Constructor Summary
Constructors Constructor Description DtPullResult(org.eclipse.jgit.transport.FetchResult fetchResult, String fetchedFrom, org.eclipse.jgit.api.MergeResult mergeResult)Creates a new instance with the given parameters.DtPullResult(org.eclipse.jgit.transport.FetchResult fetchResult, String fetchedFrom, org.eclipse.jgit.api.RebaseResult rebaseResult)Creates a new instance with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFetchedFrom()Get name of the remote configuration from which fetch was triedorg.eclipse.jgit.transport.FetchResultgetFetchResult()Get fetch resultorg.eclipse.jgit.api.MergeResultgetMergeResult()Get merge resultorg.eclipse.jgit.api.RebaseResultgetRebaseResult()Get rebase resultbooleanisSuccessful()Whether the pull was successfulStringtoString()
-
-
-
Constructor Detail
-
DtPullResult
public DtPullResult(org.eclipse.jgit.transport.FetchResult fetchResult, String fetchedFrom, org.eclipse.jgit.api.RebaseResult rebaseResult)Creates a new instance with the given parameters.- Parameters:
fetchResult- fetch result, can benullfetchedFrom- the name of the remote configuration from which fetch was tried, cannot benullrebaseResult- rebase result, can benull
-
DtPullResult
public DtPullResult(org.eclipse.jgit.transport.FetchResult fetchResult, String fetchedFrom, org.eclipse.jgit.api.MergeResult mergeResult)Creates a new instance with the given parameters.- Parameters:
fetchResult- fetch result, can benullfetchedFrom- the name of the remote configuration from which fetch was tried, cannot benullmergeResult- merge result, can benull
-
-
Method Detail
-
getFetchResult
public org.eclipse.jgit.transport.FetchResult getFetchResult()
Get fetch result- Returns:
- the fetch result, or
null
-
getMergeResult
public org.eclipse.jgit.api.MergeResult getMergeResult()
Get merge result- Returns:
- the merge result, or
null
-
getRebaseResult
public org.eclipse.jgit.api.RebaseResult getRebaseResult()
Get rebase result- Returns:
- the rebase result, or
null
-
getFetchedFrom
public String getFetchedFrom()
Get name of the remote configuration from which fetch was tried- Returns:
- the name of the remote configuration from which fetch was tried, never
null
-
isSuccessful
public boolean isSuccessful()
Whether the pull was successful- Returns:
- whether the pull was successful
-
-