Package org.eclipse.jgit.api
Class CherryPickResult
java.lang.Object
org.eclipse.jgit.api.CherryPickResult
Encapsulates the result of a
CherryPickCommand.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe cherry-pick status -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CherryPickResultACherryPickResultwith statusCherryPickResult.CherryPickStatus.CONFLICTINGprivate final Map<String,ResolveMerger.MergeFailureReason> private final RevCommitprivate final CherryPickResult.CherryPickStatus -
Constructor Summary
ConstructorsModifierConstructorDescriptionCherryPickResult(Map<String, ResolveMerger.MergeFailureReason> failingPaths) Constructor for CherryPickResultprivateCherryPickResult(RevCommit newHead, List<Ref> cherryPickedRefs) Constructor for CherryPickResult -
Method Summary
Modifier and TypeMethodDescriptionGet the cherry-pickedRefsGet the list of paths causing this cherry-pick to failGet the new head after this cherry-pickGet status
-
Field Details
-
status
-
newHead
-
cherryPickedRefs
-
failingPaths
-
CONFLICT
ACherryPickResultwith statusCherryPickResult.CherryPickStatus.CONFLICTING
-
-
Constructor Details
-
CherryPickResult
Constructor for CherryPickResult- Parameters:
newHead- commit the head points at after this cherry-pickcherryPickedRefs- list of successfully cherry-pickedRef's
-
CherryPickResult
Constructor for CherryPickResult- Parameters:
failingPaths- list of paths causing this cherry-pick to fail (seeResolveMerger.getFailingPaths()for details)
-
CherryPickResult
-
-
Method Details
-
getStatus
Get status- Returns:
- the status this cherry-pick resulted in
-
getNewHead
Get the new head after this cherry-pick- Returns:
- the commit the head points at after this cherry-pick,
nullifgetStatus()is notCherryPickResult.CherryPickStatus.OK
-
getCherryPickedRefs
Get the cherry-pickedRefs- Returns:
- the list of successfully cherry-picked
Ref's,nullifgetStatus()is notCherryPickResult.CherryPickStatus.OK
-
getFailingPaths
Get the list of paths causing this cherry-pick to fail- Returns:
- the list of paths causing this cherry-pick to fail (see
ResolveMerger.getFailingPaths()for details),nullifgetStatus()is notCherryPickResult.CherryPickStatus.FAILED
-