Skip to contentSkip to conversation

git-gui: Request blame metadata in utf-8.

PATCH In review Alexander Gavrilov 2 participants 2 messages Jun 15, 2016 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 lib/blame.tcl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/blame.tcl +1 -1
index 8d60f12..4875804 100644
@@ -559,7 +559,7 @@ method _read_file {fd jump} {
 } ifdeleted { catch {close $fd} }
 
 method _exec_blame {cur_w cur_d options cur_s} {
-	lappend options --incremental
+	lappend options --incremental --encoding=utf-8
 	if {$commit eq {}} {
 		lappend options --contents $path
 	} else {
Signature · 1 line
1.6.0.3.15.gb8d36
#1 lore raw
Quoted 8 lines · Alexander Gavrilov

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.

Thanks; all 3 applied.

Signature · 1 line
Shawn.