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 RebaseResultprivate final RevCommitprivate 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 RebaseResultprivate final RebaseResult.Status(package private) static final RebaseResult -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRebaseResult(RebaseResult.Status status) privateRebaseResult(RebaseResult.Status status, RevCommit commit) -
Method Summary
Modifier and TypeMethodDescription(package private) static RebaseResultCreateRebaseResultwith statusRebaseResult.Status.CONFLICTS(package private) static RebaseResultfailed(Map<String, ResolveMerger.MergeFailureReason> failingPaths) CreateRebaseResultwith statusRebaseResult.Status.FAILEDGet the list of conflictsGet the current commit if status isRebaseResult.Status.STOPPED, otherwisenullGet the list of paths causing this rebase to failGet the statusGetter for the fielduncommittedChanges.(package private) static RebaseResultresult(RebaseResult.Status status, RevCommit commit) CreateRebaseResult(package private) static RebaseResultuncommittedChanges(List<String> uncommittedChanges) CreateRebaseResultwith 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
CreateRebaseResultwith statusRebaseResult.Status.FAILED- Parameters:
failingPaths- list of paths causing this rebase to fail- Returns:
- the RebaseResult
-
conflicts
CreateRebaseResultwith statusRebaseResult.Status.CONFLICTS- Parameters:
conflicts- the list of conflicting paths- Returns:
- the RebaseResult
-
uncommittedChanges
CreateRebaseResultwith 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
-