java.lang.Object
org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool
org.eclipse.jgit.internal.diffmergetool.UserDefinedMergeTool
- All Implemented Interfaces:
ExternalDiffTool
,ExternalMergeTool
- Direct Known Subclasses:
PreDefinedMergeTool
The user-defined merge tool.
-
Constructor Summary
ConstructorsConstructorDescriptionUserDefinedMergeTool
(String name, String path, String cmd, BooleanTriState trustExitCode) Creates the merge tool -
Method Summary
Modifier and TypeMethodDescriptiongetCommand
(boolean withBase) Get commandGet the tool "trust exit code" optionprotected void
setTrustExitCode
(BooleanTriState trustExitCode) Set "trust exit code" flagMethods inherited from class org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool
getCommand, getName, getPath, isAvailable, setAvailable, setPath
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jgit.internal.diffmergetool.ExternalDiffTool
getCommand, getName, getPath, isAvailable
-
Constructor Details
-
UserDefinedMergeTool
Creates the merge tool- Parameters:
name
- the namepath
- the pathcmd
- the commandtrustExitCode
- the "trust exit code" option
-
-
Method Details
-
getTrustExitCode
Description copied from interface:ExternalMergeTool
Get the tool "trust exit code" option- Specified by:
getTrustExitCode
in interfaceExternalMergeTool
- Returns:
- the "trust exit code" flag
-
setTrustExitCode
Set "trust exit code" flag- Parameters:
trustExitCode
- the new "trust exit code" flag
-
getCommand
Get command- Specified by:
getCommand
in interfaceExternalMergeTool
- Parameters:
withBase
- not used, because user-defined merge tool can only define one cmd -> it must handle with and without base present (empty)- Returns:
- the tool command
-