Class MergeResult
- java.lang.Object
-
- org.craftercms.studio.api.v2.service.repository.MergeResult
-
public class MergeResult extends Object
Holds the result of a merge from a remote repository- Since:
- 4.0.0
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected long
commitsMerged
Total number of commits merged from the remote repositoryprotected String
mergeCommitId
The merge commit idprotected boolean
successful
Indicates if the pull was successful
-
Constructor Summary
Constructors Constructor Description MergeResult(boolean successful, long commitsMerged, String mergeCommitId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MergeResult
failed()
static MergeResult
from(org.eclipse.jgit.api.PullResult pullResult, Collection<String> mergedCommits)
long
getCommitsMerged()
String
getMergeCommitId()
boolean
isSuccessful()
String
toString()
-
-
-
Field Detail
-
successful
protected final boolean successful
Indicates if the pull was successful
-
commitsMerged
protected final long commitsMerged
Total number of commits merged from the remote repository
-
mergeCommitId
protected final String mergeCommitId
The merge commit id
-
-
Constructor Detail
-
MergeResult
public MergeResult(boolean successful, long commitsMerged, String mergeCommitId)
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
-
getCommitsMerged
public long getCommitsMerged()
-
getMergeCommitId
public String getMergeCommitId()
-
failed
public static MergeResult failed()
-
from
public static MergeResult from(org.eclipse.jgit.api.PullResult pullResult, Collection<String> mergedCommits)
-
-