mirror of
https://github.com/git/git.git
synced 2024-11-04 16:27:54 +01:00
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>
This commit is contained in:
parent
5e402e54e7
commit
b5cda49040
1 changed files with 1 additions and 1 deletions
2
gitk
2
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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue