Skip to content

Commit f75c8b3

Browse files
angavrilovspearce
authored andcommitted
git-gui: Request blame metadata in utf-8.
The blame builtin now supports automatic conversion of metadata encoding. By default it is converted to the character set specified by i18n.logoutputencoding. Since gui blame expects the data in utf-8, it is necessary to specify the desired encoding directly. An old version of the blame command will simply ignore the option. Signed-off-by: Alexander Gavrilov <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent e29c0d1 commit f75c8b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/blame.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ method _read_file {fd jump} {
559559
} ifdeleted { catch {close $fd} }
560560

561561
method _exec_blame {cur_w cur_d options cur_s} {
562-
lappend options --incremental
562+
lappend options --incremental --encoding=utf-8
563563
if {$commit eq {}} {
564564
lappend options --contents $path
565565
} else {

0 commit comments

Comments
 (0)