summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ed49d5)
raw | patch | inline | side by side (parent: 2ed49d5)
author | Pavel Roskin <proski@gnu.org> | |
Wed, 23 Nov 2005 04:15:01 +0000 (23:15 -0500) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Wed, 23 Nov 2005 10:21:33 +0000 (21:21 +1100) |
Add gitencoding variable and set it to "utf-8". Use it for converting
git-rev-list output.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
git-rev-list output.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index 7b733e9c5006e43cb6034058131f6528e82d2960..ecc1688c77354aa5331859612516aed43affc4f6 100755 (executable)
--- a/gitk
+++ b/gitk
proc getcommits {rargs} {
global commits commfd phase canv mainfont env
global startmsecs nextupdate ncmupdate
- global ctext maincursor textcursor leftover
+ global ctext maincursor textcursor leftover gitencoding
# check that we can find a .git directory somewhere...
set gitdir [gitdir]
exit 1
}
set leftover {}
- fconfigure $commfd -blocking 0 -translation lf
+ fconfigure $commfd -blocking 0 -translation lf -encoding $gitencoding
fileevent $commfd readable [list getcommitlines $commfd]
$canv delete all
$canv create text 3 3 -anchor nw -text "Reading commits..." \
set boldnames 0
set diffopts "-U 5 -p"
set wrcomcmd "git-diff-tree --stdin -p --pretty"
+set gitencoding "utf-8"
set mainfont {Helvetica 9}
set textfont {Courier 9}