Skip to content

Commit b5cda49

Browse files
j6tpaulusmack
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 5e402e5 commit b5cda49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7268,7 +7268,7 @@ proc getblobdiffs {ids} {
72687268
global limitdiffs vfilelimit curview
72697269
global diffencoding targetline diffnparents
72707270

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"]
72727272
if {$ignorespace} {
72737273
append cmd " -w"
72747274
}

0 commit comments

Comments
 (0)