@matheusbsbs / matheus-bagliano / commits / b5cda49040
Fork 0

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>

Johannes Sixt committed Apr 28, 2009 at 14:03 UTC b5cda49040f77334dc08485e3f36ef8c8f2928b4
1 file changed +1 -1
gitk
+1 -1
@@ -7268,7 +7268,7 @@ proc getblobdiffs {ids} {
7268 global limitdiffs vfilelimit curview
7269 global diffencoding targetline diffnparents
7270
7271 - set cmd [diffcmd $ids "-p -C --cc --no-commit-id -U$diffcontext"]
7271 + set cmd [diffcmd $ids "-p --textconv -C --cc --no-commit-id -U$diffcontext"]
7272 if {$ignorespace} {
7273 append cmd " -w"
7274 }