summaryrefslogtreecommitdiff
path: root/lib/blame.tcl
diff options
context:
space:
mode:
authorLibravatar Alexander Gavrilov <angavrilov@gmail.com>2008-11-09 18:53:09 +0300
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2008-11-11 09:29:36 -0800
commitf75c8b319f5b448d8e7dc589ca581eec852a131e (patch)
treebf8a74beeb38bd606082ff11bd7a0b7095246b48 /lib/blame.tcl
parentgit-gui: Add the Show SSH Key item to the clone dialog. (diff)
downloadtgif-f75c8b319f5b448d8e7dc589ca581eec852a131e.tar.xz
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 <angavrilov@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib/blame.tcl')
-rw-r--r--lib/blame.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/blame.tcl b/lib/blame.tcl
index 642f5cab86..c1cd7f3b92 100644
--- a/lib/blame.tcl
+++ b/lib/blame.tcl
@@ -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 {