summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e29c0d1)
raw | patch | inline | side by side (parent: e29c0d1)
author | Alexander Gavrilov <angavrilov@gmail.com> | |
Sun, 9 Nov 2008 15:53:09 +0000 (18:53 +0300) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 11 Nov 2008 17:29:36 +0000 (09:29 -0800) |
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>
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>
lib/blame.tcl | patch | blob | history |
diff --git a/lib/blame.tcl b/lib/blame.tcl
index 642f5cab8679b5649be03b93f368e0fe06cb2e20..c1cd7f3b92fddb60be9fe261d7b75c5df85b60c1 100644 (file)
--- a/lib/blame.tcl
+++ b/lib/blame.tcl
} 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 {