Top Description Inners Fields Constructors Methods
org.eclipse.jgit.api

public Class RebaseResult

extends Object
Class Inheritance
Imports
java.util.List, .Map, org.eclipse.jgit.merge.ResolveMerger.MergeFailureReason, org.eclipse.jgit.revwalk.RevCommit

The result of a org.eclipse.jgit.api.RebaseCommand execution

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
RebaseResult.Status

The overall status

Field Summary

Modifier and TypeField and Description
pack-priv static final RebaseResult
private List<String>
private final RevCommit
private Map<String, ResolveMerger.MergeFailureReason>
pack-priv static final RebaseResult
pack-priv static final RebaseResult
pack-priv static final RebaseResult
pack-priv static final RebaseResult
pack-priv static final RebaseResult
private final RebaseResult.Status
private List<String>
pack-priv static final RebaseResult

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static RebaseResult

Returns:

the RebaseResult
conflicts
(List<String>
the list of conflicting paths
conflicts
)

Create RebaseResult with status Status#CONFLICTS

pack-priv static RebaseResult

Returns:

the RebaseResult
failed
(Map<String, ResolveMerger.MergeFailureReason>
list of paths causing this rebase to fail
failingPaths
)

Create RebaseResult with status Status#FAILED

public List<String>

Returns:

the list of conflicts if status is org.eclipse.jgit.api.RebaseResult.Status#CONFLICTS
getConflicts
()

Get the list of conflicts

public RevCommit

Returns:

the current commit if status is org.eclipse.jgit.api.RebaseResult.Status#STOPPED, otherwise null
getCurrentCommit
()

Get the current commit if status is org.eclipse.jgit.api.RebaseResult.Status#STOPPED, otherwise null

public Map<String, ResolveMerger.MergeFailureReason>

Returns:

the list of paths causing this rebase to fail (see org.eclipse.jgit.merge.ResolveMerger#getFailingPaths() for details) if status is org.eclipse.jgit.api.RebaseResult.Status#FAILED, otherwise null
getFailingPaths
()

Get the list of paths causing this rebase to fail

public RebaseResult.Status

Returns:

the overall status
getStatus
()

Get the status

public List<String>

Returns:

the list of uncommitted changes if status is org.eclipse.jgit.api.RebaseResult.Status#UNCOMMITTED_CHANGES
getUncommittedChanges
()

Getter for the field uncommittedChanges.

pack-priv static RebaseResult

Returns:

the RebaseResult
result
(RebaseResult.Status
the overall rebase status
status
,
RevCommit
current commit
commit
)

Create RebaseResult

pack-priv static RebaseResult

Returns:

the RebaseResult
uncommittedChanges
(List<String>
the list of paths
uncommittedChanges
)

Create RebaseResult with status Status#UNCOMMITTED_CHANGES

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ABORTED_RESULTback to summary
pack-priv static final RebaseResult ABORTED_RESULT
conflictsback to summary
private List<String> conflicts
currentCommitback to summary
private final RevCommit currentCommit
failingPathsback to summary
private Map<String, ResolveMerger.MergeFailureReason> failingPaths
FAST_FORWARD_RESULTback to summary
pack-priv static final RebaseResult FAST_FORWARD_RESULT
INTERACTIVE_PREPARED_RESULTback to summary
pack-priv static final RebaseResult INTERACTIVE_PREPARED_RESULT
NOTHING_TO_COMMIT_RESULTback to summary
pack-priv static final RebaseResult NOTHING_TO_COMMIT_RESULT
OK_RESULTback to summary
pack-priv static final RebaseResult OK_RESULT
STASH_APPLY_CONFLICTS_RESULTback to summary
pack-priv static final RebaseResult STASH_APPLY_CONFLICTS_RESULT
statusback to summary
private final RebaseResult.Status status
uncommittedChangesback to summary
private List<String> uncommittedChanges
UP_TO_DATE_RESULTback to summary
pack-priv static final RebaseResult UP_TO_DATE_RESULT

Constructor Detail

RebaseResultback to summary
private RebaseResult(RebaseResult.Status status)
RebaseResultback to summary
private RebaseResult(RebaseResult.Status status, RevCommit commit)

Method Detail

conflictsback to summary
pack-priv static RebaseResult conflicts(List<String> conflicts)

Create RebaseResult with status Status#CONFLICTS

Parameters
conflicts:List<String>

the list of conflicting paths

Returns:RebaseResult

the RebaseResult

failedback to summary
pack-priv static RebaseResult failed(Map<String, ResolveMerger.MergeFailureReason> failingPaths)

Create RebaseResult with status Status#FAILED

Parameters
failingPaths:Map<String, ResolveMerger.MergeFailureReason>

list of paths causing this rebase to fail

Returns:RebaseResult

the RebaseResult

getConflictsback to summary
public List<String> getConflicts()

Get the list of conflicts

Returns:List<String>

the list of conflicts if status is org.eclipse.jgit.api.RebaseResult.Status#CONFLICTS

getCurrentCommitback to summary
public RevCommit getCurrentCommit()

Get the current commit if status is org.eclipse.jgit.api.RebaseResult.Status#STOPPED, otherwise null

Returns:RevCommit

the current commit if status is org.eclipse.jgit.api.RebaseResult.Status#STOPPED, otherwise null

getFailingPathsback to summary
public Map<String, ResolveMerger.MergeFailureReason> getFailingPaths()

Get the list of paths causing this rebase to fail

Returns:Map<String, ResolveMerger.MergeFailureReason>

the list of paths causing this rebase to fail (see org.eclipse.jgit.merge.ResolveMerger#getFailingPaths() for details) if status is org.eclipse.jgit.api.RebaseResult.Status#FAILED, otherwise null

getStatusback to summary
public RebaseResult.Status getStatus()

Get the status

Returns:RebaseResult.Status

the overall status

getUncommittedChangesback to summary
public List<String> getUncommittedChanges()

Getter for the field uncommittedChanges.

Returns:List<String>

the list of uncommitted changes if status is org.eclipse.jgit.api.RebaseResult.Status#UNCOMMITTED_CHANGES

Since
3.2
resultback to summary
pack-priv static RebaseResult result(RebaseResult.Status status, RevCommit commit)

Create RebaseResult

Parameters
status:RebaseResult.Status

the overall rebase status

commit:RevCommit

current commit

Returns:RebaseResult

the RebaseResult

uncommittedChangesback to summary
pack-priv static RebaseResult uncommittedChanges(List<String> uncommittedChanges)

Create RebaseResult with status Status#UNCOMMITTED_CHANGES

Parameters
uncommittedChanges:List<String>

the list of paths

Returns:RebaseResult

the RebaseResult

org.eclipse.jgit.api back to summary

public sealed Enum RebaseResult.Status

extends Enum<RebaseResult.Status>
Class Inheritance

The overall status

Field Summary

Modifier and TypeField and Description
public static final RebaseResult.Status
ABORTED

Aborted; the original HEAD was restored

public static final RebaseResult.Status
CONFLICTS

Conflicts: checkout of target HEAD failed

public static final RebaseResult.Status
EDIT

Stopped for editing in the context of an interactive rebase

public static final RebaseResult.Status
FAILED

Failed; the original HEAD was restored

public static final RebaseResult.Status
FAST_FORWARD

Fast-forward, HEAD points to the new commit

public static final RebaseResult.Status
INTERACTIVE_PREPARED

Interactive rebase has been prepared

public static final RebaseResult.Status
NOTHING_TO_COMMIT

Continue with nothing left to commit (possibly want skip).

public static final RebaseResult.Status
OK

Rebase was successful, HEAD points to the new commit

public static final RebaseResult.Status
STASH_APPLY_CONFLICTS

Applying stash resulted in conflicts

public static final RebaseResult.Status
STOPPED

Stopped due to a conflict; must either abort or resolve or skip

public static final RebaseResult.Status
UNCOMMITTED_CHANGES

The repository contains uncommitted changes and the rebase is not a fast-forward

public static final RebaseResult.Status
UP_TO_DATE

Already up-to-date

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public abstract boolean

Returns:

whether the status indicates a successful result
isSuccessful
()

Whether the rebase was successful

public static RebaseResult.Status
public static RebaseResult.Status[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ABORTEDback to summary
public static final RebaseResult.Status ABORTED

Aborted; the original HEAD was restored

CONFLICTSback to summary
public static final RebaseResult.Status CONFLICTS

Conflicts: checkout of target HEAD failed

EDITback to summary
public static final RebaseResult.Status EDIT

Stopped for editing in the context of an interactive rebase

Since
3.2
FAILEDback to summary
public static final RebaseResult.Status FAILED

Failed; the original HEAD was restored

FAST_FORWARDback to summary
public static final RebaseResult.Status FAST_FORWARD

Fast-forward, HEAD points to the new commit

INTERACTIVE_PREPAREDback to summary
public static final RebaseResult.Status INTERACTIVE_PREPARED

Interactive rebase has been prepared

Since
3.2
NOTHING_TO_COMMITback to summary
public static final RebaseResult.Status NOTHING_TO_COMMIT

Continue with nothing left to commit (possibly want skip).

Since
2.0
OKback to summary
public static final RebaseResult.Status OK

Rebase was successful, HEAD points to the new commit

STASH_APPLY_CONFLICTSback to summary
public static final RebaseResult.Status STASH_APPLY_CONFLICTS

Applying stash resulted in conflicts

Since
3.2
STOPPEDback to summary
public static final RebaseResult.Status STOPPED

Stopped due to a conflict; must either abort or resolve or skip

UNCOMMITTED_CHANGESback to summary
public static final RebaseResult.Status UNCOMMITTED_CHANGES

The repository contains uncommitted changes and the rebase is not a fast-forward

Since
3.2
UP_TO_DATEback to summary
public static final RebaseResult.Status UP_TO_DATE

Already up-to-date

Constructor Detail

Statusback to summary
private Status()

Method Detail

isSuccessfulback to summary
public abstract boolean isSuccessful()

Whether the rebase was successful

Returns:boolean

whether the status indicates a successful result

valueOfback to summary
public static RebaseResult.Status valueOf(String name)
valuesback to summary
public static RebaseResult.Status[] values()