public interface RTEGitRebaseCommand extends RTAbstractCommand
This command can perform rebase/abort/continue operations as described in Git documentation. The command is executed in background and client needs to
use completion callback to track result. The command is executed as WorkspaceJob
thus calling the command from context of WorkspaceModifyOperation
may result in lock/hanging.
When external IProgressMonitor
is provided the command is executed as system job without additional progress dialog.
Client can also use command to start interactive rebase by means of setInteractive(true)
.
Modifier and Type | Interface and Description |
---|---|
static interface |
RTEGitRebaseCommand.RebaseCompletionCallback
Defines interface for callback which is notified when merge operation is completed.
|
Modifier and Type | Method and Description |
---|---|
RTEGitRebaseCommand |
setAutoImport(boolean autoImport)
Perform auto-import of affected project during rebase.
|
RTEGitRebaseCommand |
setClosureFilter(IClosureFilter filter)
Defines filter for closure operation.
|
RTEGitRebaseCommand |
setClosureFilter(String filter)
Defines filter for closure operation.
|
RTEGitRebaseCommand |
setCompletionCallback(RTEGitRebaseCommand.RebaseCompletionCallback callback)
Set callback which will be notified when merge operation is completed.
|
RTEGitRebaseCommand |
setInteractive(boolean interactive)
Set interactive mode for the rebase
|
RTEGitRebaseCommand |
setMergeType(MergeType type)
Set merge type for rebase command.
|
RTEGitRebaseCommand |
setOperation(org.eclipse.jgit.api.RebaseCommand.Operation operation)
Set current rebase operation.
|
RTEGitRebaseCommand |
setPartialMode(boolean partialMode)
Enables/disables partial mode.
|
RTEGitRebaseCommand |
setPreserveMerges(boolean preserve)
True to re-create merges during rebase.
|
RTEGitRebaseCommand |
setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
Set progress monitor for operation.
|
RTEGitRebaseCommand |
setRepository(File repository)
Set path to existing Git repository
|
RTEGitRebaseCommand |
setUpstream(String ref)
Set upstream branch
|
call
RTEGitRebaseCommand setRepository(File repository)
repository
- - path to Git repository. Path may or may not include '.git' folder. Paths '/dir1/dir2/dir3' and '/dir1/dir2/dir3/.git' are considered the sameRTEGitRebaseCommand setInteractive(boolean interactive)
interactive
- RTEGitRebaseCommand setUpstream(String ref)
ref
- - branch name, reference or commit idRTEGitRebaseCommand setMergeType(MergeType type)
type
- - MergeType
RTEGitRebaseCommand setPreserveMerges(boolean preserve)
preserve
- RTEGitRebaseCommand setAutoImport(boolean autoImport)
autoImport
- RTEGitRebaseCommand setPartialMode(boolean partialMode)
Partial mode allows to save partially merged models and mark as conflicting only really conflicting files.
Default value: disabledpartialMode
- RTEGitRebaseCommand setOperation(org.eclipse.jgit.api.RebaseCommand.Operation operation)
operation
- - RebaseCommand.Operation
RTEGitRebaseCommand setClosureFilter(String filter)
filter
- - comma-separated list of paths. Each path may include '*' or '?' symbolsRTEGitRebaseCommand setClosureFilter(IClosureFilter filter)
filter
- - an object implementing IClosureFilter
interfaceRTEGitRebaseCommand setCompletionCallback(RTEGitRebaseCommand.RebaseCompletionCallback callback)
callback
- - RTEGitRebaseCommand.RebaseCompletionCallback
RTEGitRebaseCommand setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
monitor
- - IProgressMonitor