Package org.eclipse.jgit.api
Class PullResult
- java.lang.Object
-
- org.eclipse.jgit.api.PullResult
-
public class PullResult extends java.lang.Object
Encapsulates the result of aPullCommand
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
fetchedFrom
private FetchResult
fetchResult
private MergeResult
mergeResult
private RebaseResult
rebaseResult
-
Constructor Summary
Constructors Constructor Description PullResult(FetchResult fetchResult, java.lang.String fetchedFrom, MergeResult mergeResult)
PullResult(FetchResult fetchResult, java.lang.String fetchedFrom, RebaseResult rebaseResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFetchedFrom()
Get name of the remote configuration from which fetch was triedFetchResult
getFetchResult()
Get fetch resultMergeResult
getMergeResult()
Get merge resultRebaseResult
getRebaseResult()
Get rebase resultboolean
isSuccessful()
Whether the pull was successfuljava.lang.String
toString()
-
-
-
Field Detail
-
fetchResult
private final FetchResult fetchResult
-
mergeResult
private final MergeResult mergeResult
-
rebaseResult
private final RebaseResult rebaseResult
-
fetchedFrom
private final java.lang.String fetchedFrom
-
-
Constructor Detail
-
PullResult
PullResult(FetchResult fetchResult, java.lang.String fetchedFrom, MergeResult mergeResult)
-
PullResult
PullResult(FetchResult fetchResult, java.lang.String fetchedFrom, RebaseResult rebaseResult)
-
-
Method Detail
-
getFetchResult
public FetchResult getFetchResult()
Get fetch result- Returns:
- the fetch result, or
null
-
getMergeResult
public MergeResult getMergeResult()
Get merge result- Returns:
- the merge result, or
null
-
getRebaseResult
public RebaseResult getRebaseResult()
Get rebase result- Returns:
- the rebase result, or
null
-
getFetchedFrom
public java.lang.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,
or
null
-
isSuccessful
public boolean isSuccessful()
Whether the pull was successful- Returns:
- whether the pull was successful
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-