Skip to content

Commit 48672b3

Browse files
artagnongitster
authored andcommitted
Documentation: Allow custom diff tools to be specified in 'diff.tool'
Apart from the list of "valid values", 'diff.tool' can take any value, provided there is a corresponding 'difftool.<tool>.cmd' option. Also, describe this option just before the 'difftool.*' options. Helped-by: Michael J Gruber <[email protected]> Signed-off-by: Ramkumar Ramachandra <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 90b94c2 commit 48672b3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Documentation/diff-config.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ diff.suppressBlankEmpty::
5555
A boolean to inhibit the standard behavior of printing a space
5656
before each empty output line. Defaults to false.
5757

58-
diff.tool::
59-
Controls which diff tool is used. `diff.tool` overrides
60-
`merge.tool` when used by linkgit:git-difftool[1] and has
61-
the same valid values as `merge.tool` minus "tortoisemerge"
62-
and plus "kompare".
63-
6458
diff.<driver>.command::
6559
The custom diff driver command. See linkgit:gitattributes[5]
6660
for details.
@@ -88,3 +82,11 @@ diff.<driver>.wordregex::
8882
diff.<driver>.cachetextconv::
8983
Set this option to true to make the diff driver cache the text
9084
conversion outputs. See linkgit:gitattributes[5] for details.
85+
86+
diff.tool::
87+
The diff tool to be used by linkgit:git-difftool[1]. This
88+
option overrides `merge.tool`, and has the same valid built-in
89+
values as `merge.tool` minus "tortoisemerge" and plus
90+
"kompare". Any other value is treated as a custom diff tool,
91+
and there must be a corresponding `difftool.<tool>.cmd`
92+
option.

0 commit comments

Comments
 (0)