]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
commit-tree: encourage UTF-8 commit messages.
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Fri, 22 Dec 2006 21:06:08 +0000 (22:06 +0100)
committerJunio C Hamano <junkio@cox.net>
Sun, 24 Dec 2006 08:32:49 +0000 (00:32 -0800)
commit9e83266525aad5c6210b9a21be9b1c6996d5544f
tree8895723b2443360f01703d41eb9f813dbca0ac93
parent8e554429e8a9dbb5dba6b8aeca66fc27c0bb5538
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>
Makefile
builtin-commit-tree.c
utf8.c [new file with mode: 0644]
utf8.h [new file with mode: 0644]