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