Offload commit encoding entirely to git
commit6b195c0fd1474961e6f252900e25748794b5c3cf
authorJonas Fonseca <fonseca@diku.dk>
Thu, 12 Jan 2012 05:31:29 +0000 (12 00:31 -0500)
committerJonas Fonseca <fonseca@diku.dk>
Sat, 21 Jan 2012 06:24:52 +0000 (21 01:24 -0500)
tree1d8ca5aec5a8c8f924de71f263a2bcab5876addf
parent933c4447babf5aac6bde3ae596af0d42b7dbf225
Offload commit encoding entirely to git

Commits can be encoding with different character sets, which means that
relying on a repository wide setting is wrong. To fix this pass
--encoding=UTF-8 to all git commands, which use the revision machinery.
This will override the user's i18n.logOutputEncoding option and ensure
that the output provided by git is encoding as UTF-8. The --encoding
option has been available in git for a couple of years--since 2006 for
the log and diff related tools and since 2008 for git-blame--so they
should not pose any problems.

This patch is based on work by Heiko Schlichting.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
NEWS
contrib/tigrc
tig.c
tig.h
tigrc.5.txt