Package org.eclipse.jgit.api
Class RebaseResult
java.lang.Object
org.eclipse.jgit.api.RebaseResult
The result of a
RebaseCommand
execution-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final RebaseResult
private final RevCommit
private Map
<String, ResolveMerger.MergeFailureReason> (package private) static final RebaseResult
(package private) static final RebaseResult
(package private) static final RebaseResult
(package private) static final RebaseResult
(package private) static final RebaseResult
private final RebaseResult.Status
(package private) static final RebaseResult
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
RebaseResult
(RebaseResult.Status status) private
RebaseResult
(RebaseResult.Status status, RevCommit commit) -
Method Summary
Modifier and TypeMethodDescription(package private) static RebaseResult
CreateRebaseResult
with statusRebaseResult.Status.CONFLICTS
(package private) static RebaseResult
failed
(Map<String, ResolveMerger.MergeFailureReason> failingPaths) CreateRebaseResult
with statusRebaseResult.Status.FAILED
Get the list of conflictsGet the current commit if status isRebaseResult.Status.STOPPED
, otherwisenull
Get the list of paths causing this rebase to failGet the statusGetter for the fielduncommittedChanges
.(package private) static RebaseResult
result
(RebaseResult.Status status, RevCommit commit) CreateRebaseResult
(package private) static RebaseResult
uncommittedChanges
(List<String> uncommittedChanges) CreateRebaseResult
with statusRebaseResult.Status.UNCOMMITTED_CHANGES
-
Field Details
-
OK_RESULT
-
ABORTED_RESULT
-
UP_TO_DATE_RESULT
-
FAST_FORWARD_RESULT
-
NOTHING_TO_COMMIT_RESULT
-
INTERACTIVE_PREPARED_RESULT
-
STASH_APPLY_CONFLICTS_RESULT
-
status
-
currentCommit
-
failingPaths
-
conflicts
-
uncommittedChanges
-
-
Constructor Details
-
RebaseResult
-
RebaseResult
-
-
Method Details
-
result
CreateRebaseResult
- Parameters:
status
-commit
- current commit- Returns:
- the RebaseResult
-
failed
CreateRebaseResult
with statusRebaseResult.Status.FAILED
- Parameters:
failingPaths
- list of paths causing this rebase to fail- Returns:
- the RebaseResult
-
conflicts
CreateRebaseResult
with statusRebaseResult.Status.CONFLICTS
- Parameters:
conflicts
- the list of conflicting paths- Returns:
- the RebaseResult
-
uncommittedChanges
CreateRebaseResult
with statusRebaseResult.Status.UNCOMMITTED_CHANGES
- Parameters:
uncommittedChanges
- the list of paths- Returns:
- the RebaseResult
-
getStatus
Get the status- Returns:
- the overall status
-
getCurrentCommit
Get the current commit if status isRebaseResult.Status.STOPPED
, otherwisenull
- Returns:
- the current commit if status is
RebaseResult.Status.STOPPED
, otherwisenull
-
getFailingPaths
Get the list of paths causing this rebase to fail- Returns:
- the list of paths causing this rebase to fail (see
ResolveMerger.getFailingPaths()
for details) if status isRebaseResult.Status.FAILED
, otherwisenull
-
getConflicts
Get the list of conflicts- Returns:
- the list of conflicts if status is
RebaseResult.Status.CONFLICTS
-
getUncommittedChanges
Getter for the field
uncommittedChanges
.- Returns:
- the list of uncommitted changes if status is
RebaseResult.Status.UNCOMMITTED_CHANGES
- Since:
- 3.2
-