Package org.eclipse.jgit.api
Class PullResult
java.lang.Object
org.eclipse.jgit.api.PullResult
Encapsulates the result of a
PullCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final FetchResult
private final MergeResult
private final RebaseResult
-
Constructor Summary
ConstructorsConstructorDescriptionPullResult
(FetchResult fetchResult, String fetchedFrom, MergeResult mergeResult) PullResult
(FetchResult fetchResult, String fetchedFrom, RebaseResult rebaseResult) -
Method Summary
Modifier and TypeMethodDescriptionGet name of the remote configuration from which fetch was triedGet fetch resultGet merge resultGet rebase resultboolean
Whether the pull was successfultoString()
-
Field Details
-
fetchResult
-
mergeResult
-
rebaseResult
-
fetchedFrom
-
-
Constructor Details
-
PullResult
PullResult(FetchResult fetchResult, String fetchedFrom, MergeResult mergeResult) -
PullResult
PullResult(FetchResult fetchResult, String fetchedFrom, RebaseResult rebaseResult)
-
-
Method Details
-
getFetchResult
Get fetch result- Returns:
- the fetch result, or
null
-
getMergeResult
Get merge result- Returns:
- the merge result, or
null
-
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,
or
null
-
isSuccessful
public boolean isSuccessful()Whether the pull was successful- Returns:
- whether the pull was successful
-
toString
-