From: Johannes Sixt Date: Tue, 28 Apr 2009 12:03:54 +0000 (+0200) Subject: gitk: Use --textconv to generate diff text X-Git-Tag: v1.6.4-rc0~53^2~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b5cda49040f77334dc08485e3f36ef8c8f2928b4 gitk: Use --textconv to generate diff text For the most part gitk's focus is on showing history and changes in a human readable form. For this reason, it makes sense to generate the patch text in the diff view using --textconv so that textconv drivers are used if they are defined. gitk can also generate patches, but we do not use --textconv because such patches could not be applied. Signed-off-by: Johannes Sixt Signed-off-by: Paul Mackerras --- diff --git a/gitk b/gitk index 1a7887b252..dcbfdc6538 100755 --- a/gitk +++ b/gitk @@ -7268,7 +7268,7 @@ proc getblobdiffs {ids} { global limitdiffs vfilelimit curview global diffencoding targetline diffnparents - set cmd [diffcmd $ids "-p -C --cc --no-commit-id -U$diffcontext"] + set cmd [diffcmd $ids "-p --textconv -C --cc --no-commit-id -U$diffcontext"] if {$ignorespace} { append cmd " -w" }