Skip to content

Commit 6bb9e51

Browse files
Anders Melchiorsengitster
authored andcommitted
Documentation: fix diff.external example
The diff.external examples pass a flag to gnu-diff, but GNU diff does not follow the GIT_EXTERNAL_DIFF interface. Signed-off-by: Anders Melchiorsen <mail@cup.kalibalik.dk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent cbb504c commit 6bb9e51

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Documentation/config.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Example
9292

9393
# Our diff algorithm
9494
[diff]
95-
external = "/usr/local/bin/gnu-diff -u"
95+
external = /usr/local/bin/diff-wrapper
9696
renames = true
9797

9898
[branch "devel"]
@@ -563,9 +563,11 @@ diff.autorefreshindex::
563563
diff.external::
564564
If this config variable is set, diff generation is not
565565
performed using the internal diff machinery, but using the
566-
given command. Note: if you want to use an external diff
567-
program only on a subset of your files, you might want to
568-
use linkgit:gitattributes[5] instead.
566+
given command. Can be overridden with the `GIT_EXTERNAL_DIFF'
567+
environment variable. The command is called with parameters
568+
as described under "git Diffs" in linkgit:git[1]. Note: if
569+
you want to use an external diff program only on a subset of
570+
your files, you might want to use linkgit:gitattributes[5] instead.
569571

570572
diff.renameLimit::
571573
The number of files to consider when performing the copy/rename

Documentation/git-config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Given a .git/config like this:
222222

223223
; Our diff algorithm
224224
[diff]
225-
external = "/usr/local/bin/gnu-diff -u"
225+
external = /usr/local/bin/diff-wrapper
226226
renames = true
227227

228228
; Proxy settings

0 commit comments

Comments
 (0)