public class RTEGitMergeCommandImpl extends Object implements RTEGitMergeCommand
RTEGitMergeCommand.MergeCompletionCallback| Constructor and Description |
|---|
RTEGitMergeCommandImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.core.runtime.IStatus |
call() |
RTEGitMergeCommand |
setAutoCheckout(boolean status)
Automatically checkout target branch before merge
|
RTEGitMergeCommand |
setAutoCommit(boolean autoCommit)
Controls whether the merge command should automatically commit after a
successful merge.
|
RTEGitMergeCommand |
setAutoImport(boolean status)
Perform auto-import of affected project during compare/merge operation
Default value: disabled
|
RTEGitMergeCommand |
setClosureFilter(IClosureFilter filter)
Defines filter for closure operation.
|
RTEGitMergeCommand |
setClosureFilter(String filter)
Defines filter for closure operation.
|
RTEGitMergeCommand |
setCompletionCallback(RTEGitMergeCommand.MergeCompletionCallback callback)
Set callback which will be notified when merge operation is completed.
|
RTEGitMergeCommand |
setFastForwardMode(org.eclipse.jgit.api.MergeCommand.FastForwardMode mode)
Set fast-forward mode.
|
RTEGitMergeCommand |
setMergeType(MergeType type)
Set merge type.
|
RTEGitMergeCommand |
setPartialMode(boolean status)
Enables/disables partial mode.
|
RTEGitMergeCommand |
setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
Set progress monitor for current command
|
RTEGitMergeCommand |
setRepository(File repository)
Set path to existing Git repository
|
RTEGitMergeCommand |
setSource(String ref)
Set source branch/ref/commit for the merge
|
RTEGitMergeCommand |
setSquash(boolean status)
Enables/disables squash mode for merge.
|
RTEGitMergeCommand |
setTarget(String ref)
Set target branch/ref/commit for the merge.
|
String |
toString() |
public org.eclipse.core.runtime.IStatus call()
call in interface RTAbstractCommandpublic RTEGitMergeCommand setRepository(File repository)
RTEGitMergeCommandsetRepository in interface RTEGitMergeCommandrepository - - path to Git repository. Path may or may not include '.git' folder. Paths '/dir1/dir2/dir3' and '/dir1/dir2/dir3/.git' are considered the samepublic RTEGitMergeCommand setSource(String ref)
RTEGitMergeCommandsetSource in interface RTEGitMergeCommandref - - branch name, reference or commit idpublic RTEGitMergeCommand setTarget(String ref)
RTEGitMergeCommandsetTarget in interface RTEGitMergeCommandref - - branch name, reference or commit idpublic RTEGitMergeCommand setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
RTEGitMergeCommandsetProgressMonitor in interface RTEGitMergeCommandpublic RTEGitMergeCommand setMergeType(MergeType type)
RTEGitMergeCommandsetMergeType in interface RTEGitMergeCommandtype - - MergeTypepublic RTEGitMergeCommand setAutoImport(boolean status)
RTEGitMergeCommandsetAutoImport in interface RTEGitMergeCommandpublic RTEGitMergeCommand setPartialMode(boolean status)
RTEGitMergeCommandPartial mode allows to save partially merged models and mark as conflicting only really conflicting files.
Default value: disabledsetPartialMode in interface RTEGitMergeCommandpublic RTEGitMergeCommand setAutoCheckout(boolean status)
RTEGitMergeCommandsetAutoCheckout in interface RTEGitMergeCommandpublic RTEGitMergeCommand setClosureFilter(String filter)
RTEGitMergeCommandsetClosureFilter in interface RTEGitMergeCommandfilter - - comma-separated list of paths. Each path may include '*' or '?' symbolspublic RTEGitMergeCommand setClosureFilter(IClosureFilter filter)
RTEGitMergeCommandsetClosureFilter in interface RTEGitMergeCommandfilter - - an object implementing IClosureFilter interfacepublic RTEGitMergeCommand setSquash(boolean status)
RTEGitMergeCommandsetSquash in interface RTEGitMergeCommandpublic RTEGitMergeCommand setCompletionCallback(RTEGitMergeCommand.MergeCompletionCallback callback)
RTEGitMergeCommandsetCompletionCallback in interface RTEGitMergeCommandcallback - - RTEGitMergeCommand.MergeCompletionCallbackpublic RTEGitMergeCommand setFastForwardMode(org.eclipse.jgit.api.MergeCommand.FastForwardMode mode)
RTEGitMergeCommandMergeCommand.FastForwardMode for details.setFastForwardMode in interface RTEGitMergeCommandmode - - MergeCommand.FastForwardModepublic RTEGitMergeCommand setAutoCommit(boolean autoCommit)
RTEGitMergeCommandfalse.setAutoCommit in interface RTEGitMergeCommand