提交 f75c8b31 编写于 作者: A Alexander Gavrilov 提交者: Shawn O. Pearce

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: NAlexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
上级 e29c0d10
...@@ -559,7 +559,7 @@ method _read_file {fd jump} { ...@@ -559,7 +559,7 @@ method _read_file {fd jump} {
} ifdeleted { catch {close $fd} } } ifdeleted { catch {close $fd} }
method _exec_blame {cur_w cur_d options cur_s} { method _exec_blame {cur_w cur_d options cur_s} {
lappend options --incremental lappend options --incremental --encoding=utf-8
if {$commit eq {}} { if {$commit eq {}} {
lappend options --contents $path lappend options --contents $path
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册