Class DtPullResult
java.lang.Object
com._1c.g5.v8.dt.compare.git.pull.DtPullResult
Encapsulates the result of pull command with a rebase mode. Based on
PullResult
-
Constructor Summary
ConstructorsConstructorDescriptionDtPullResult
(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
Modifier and TypeMethodDescriptionGet name of the remote configuration from which fetch was triedorg.eclipse.jgit.transport.FetchResult
Get fetch resultorg.eclipse.jgit.api.MergeResult
Get merge resultorg.eclipse.jgit.api.RebaseResult
Get rebase resultboolean
Whether the pull was successfultoString()
-
Constructor Details
-
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 benull
fetchedFrom
- the name of the remote configuration from which fetch was tried, cannot benull
rebaseResult
- 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 benull
fetchedFrom
- the name of the remote configuration from which fetch was tried, cannot benull
mergeResult
- merge result, can benull
-
-
Method Details
-
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
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
-
toString
-