java.lang.Object
org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool
org.eclipse.jgit.internal.diffmergetool.UserDefinedMergeTool
org.eclipse.jgit.internal.diffmergetool.PreDefinedMergeTool
- All Implemented Interfaces:
ExternalDiffTool,ExternalMergeTool
The pre-defined merge tool.
-
Constructor Summary
ConstructorsConstructorDescriptionPreDefinedMergeTool(String name, String path, String parametersWithBase, String parametersWithoutBase, BooleanTriState trustExitCode) Creates the pre-defined merge toolCreates the pre-defined merge tool -
Method Summary
Modifier and TypeMethodDescriptionThe command of the diff tool.getCommand(boolean withBase) Get commandvoidsetTrustExitCode(BooleanTriState trustExitCode) Set "trust exit code" flagMethods inherited from class org.eclipse.jgit.internal.diffmergetool.UserDefinedMergeTool
getTrustExitCodeMethods inherited from class org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool
getName, getPath, isAvailable, setAvailable, setPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jgit.internal.diffmergetool.ExternalDiffTool
getName, getPath, isAvailable
-
Constructor Details
-
PreDefinedMergeTool
public PreDefinedMergeTool(String name, String path, String parametersWithBase, String parametersWithoutBase, BooleanTriState trustExitCode) Creates the pre-defined merge tool- Parameters:
name- the namepath- the pathparametersWithBase- the tool parameters that are used together with path as command and "base is present" ($BASE)parametersWithoutBase- the tool parameters that are used together with path as command and "base is present" ($BASE)trustExitCode- the "trust exit code" option
-
PreDefinedMergeTool
Creates the pre-defined merge tool- Parameters:
tool- the command line merge tool
-
-
Method Details
-
setTrustExitCode
Description copied from class:UserDefinedMergeToolSet "trust exit code" flag- Overrides:
setTrustExitCodein classUserDefinedMergeTool- Parameters:
trustExitCode- the "trust exit code" option
-
getCommand
Description copied from class:UserDefinedDiffToolThe command of the diff tool.A pre-defined external diff tool can be overridden using the tools name in a configuration file. The overwritten tool is then a user defined tool and the command of the diff tool is specified with
difftool.<tool>.cmd. This command must work without prepending the value ofUserDefinedDiffTool.getPath()and can sometimes include tool parameters.- Specified by:
getCommandin interfaceExternalDiffTool- Overrides:
getCommandin classUserDefinedDiffTool- Returns:
- the tool command (with base present)
- See Also:
-
getCommand
Description copied from class:UserDefinedMergeToolGet command- Specified by:
getCommandin interfaceExternalMergeTool- Overrides:
getCommandin classUserDefinedMergeTool- Parameters:
withBase- get command with base present (true) or without base present (false)- Returns:
- the tool command
-