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.FetchResultGet fetch resultorg.eclipse.jgit.api.MergeResultGet merge resultorg.eclipse.jgit.api.RebaseResultGet rebase resultbooleanWhether 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 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 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
-