summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d327244)
raw | patch | inline | side by side (parent: d327244)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 28 Nov 2005 00:12:51 +0000 (16:12 -0800) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Mon, 28 Nov 2005 09:46:49 +0000 (20:46 +1100) |
Hardcoding "utf-8" in the script breaks projects that use local
encoding, so allow setting i18n.commitEncoding.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
encoding, so allow setting i18n.commitEncoding.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index e1c3954754f7daba1dee00114e74ca111ee5581a..730ffd9202cdced9e7fbe3e466a547f402694ac0 100755 (executable)
--- a/gitk
+++ b/gitk
set boldnames 0
set diffopts "-U 5 -p"
set wrcomcmd "git-diff-tree --stdin -p --pretty"
-set gitencoding "utf-8"
+
+set gitencoding ""
+catch {
+ set gitencoding [exec git-repo-config --get i18n.commitencoding]
+}
+if {$gitencoding == ""} {
+ set gitencoding "utf-8"
+}
set mainfont {Helvetica 9}
set textfont {Courier 9}