Class PreDefinedDiffTool
java.lang.Object
org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool
org.eclipse.jgit.internal.diffmergetool.PreDefinedDiffTool
- All Implemented Interfaces:
ExternalDiffTool
The pre-defined diff tool.
-
Constructor Summary
ConstructorsConstructorDescriptionPreDefinedDiffTool(String name, String path, String parameters) Create a pre-defined diff toolCreates the pre-defined diff tool -
Method Summary
Modifier and TypeMethodDescriptionThe command of the diff tool.voidOverrides the path for the given tool.Methods inherited from class org.eclipse.jgit.internal.diffmergetool.UserDefinedDiffTool
getName, getPath
-
Constructor Details
-
PreDefinedDiffTool
Create a pre-defined diff tool- Parameters:
name- the namepath- the pathparameters- the tool parameters as one string that is used together with path as command
-
PreDefinedDiffTool
Creates the pre-defined diff tool- Parameters:
tool- the command line diff tool
-
-
Method Details
-
setPath
Description copied from class:UserDefinedDiffToolOverrides the path for the given tool. Equivalent to settingdifftool.<tool>.path.- Overrides:
setPathin classUserDefinedDiffTool- Parameters:
path-- See Also:
-
getCommand
The 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 concatenated path and command of the pre-defined diff tool
- See Also:
-