summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <j6t@kdbg.org>2009-04-28 14:03:54 +0200
committerLibravatar Paul Mackerras <paulus@samba.org>2009-05-16 21:08:05 +1000
commitb5cda49040f77334dc08485e3f36ef8c8f2928b4 (patch)
tree8246cb0aa5fd052dae6fb7e4639ff5247d0b0e32
parentgitk: Update German translation. (diff)
downloadtgif-b5cda49040f77334dc08485e3f36ef8c8f2928b4.tar.xz
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 <j6t@kdbg.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
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"
}