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 enum
The cherry-pick status -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CherryPickResult
ACherryPickResult
with statusCherryPickResult.CherryPickStatus.CONFLICTING
private final Map<String,
ResolveMerger.MergeFailureReason> private final RevCommit
private final CherryPickResult.CherryPickStatus
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCherryPickResult
(Map<String, ResolveMerger.MergeFailureReason> failingPaths) Constructor for CherryPickResultprivate
CherryPickResult
(RevCommit newHead, List<Ref> cherryPickedRefs) Constructor for CherryPickResult -
Method Summary
Modifier and TypeMethodDescriptionGet the cherry-pickedRef
sGet 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
ACherryPickResult
with 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,
null
ifgetStatus()
is notCherryPickResult.CherryPickStatus.OK
-
getCherryPickedRefs
Get the cherry-pickedRef
s- Returns:
- the list of successfully cherry-picked
Ref
's,null
ifgetStatus()
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),null
ifgetStatus()
is notCherryPickResult.CherryPickStatus.FAILED
-