Use the diff tool specified by <tool>. Valid values include emerge, kompare, meld, and vimdiff. Run
git difftool --tool-help
for the list of valid <tool> settings.
If a diff tool is not specified,
will use the configuration variable
diff.tool. If the configuration variable
is not set,
will pick a suitable default.
You can explicitly provide a full path to the tool by setting the configuration variable
difftool.<tool>.path. For example, you can configure the absolute path to kdiff3 by setting
assumes the tool is available in PATH.
Instead of running one of the known diff tools,
can be customized to run an alternative program by specifying the command line to invoke in a configuration variable
is invoked with this tool (either through the
option or the
configuration variable) the configured command line will be invoked with the following variables available:
is set to the name of the temporary file containing the contents of the diff pre-image and
is set to the name of the temporary file containing the contents of the diff post-image.
is the name of the file which is being compared.
is provided for compatibility with custom merge tool commands and has the same value as