commit | 9e83266525aad5c6210b9a21be9b1c6996d5544f | [log] [tgz] |
---|---|---|
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | Fri Dec 22 22:06:08 2006 +0100 |
committer | Junio C Hamano <junkio@cox.net> | Sun Dec 24 00:32:49 2006 -0800 |
tree | 8895723b2443360f01703d41eb9f813dbca0ac93 | |
parent | 8e554429e8a9dbb5dba6b8aeca66fc27c0bb5538 [diff] |
commit-tree: encourage UTF-8 commit messages. Introduce is_utf() to check if a text looks like it is encoded in UTF-8, utf8_width() to count display width, and implements print_wrapped_text() using them. git-commit-tree warns if the commit message does not minimally conform to the UTF-8 encoding when i18n.commitencoding is either unset, or set to "utf-8". Signed-off-by: Junio C Hamano <junkio@cox.net>