]> git.ipfire.org Git - thirdparty/git.git/commit - pretty.c
cleanup: add isascii()
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 7 Mar 2009 13:06:49 +0000 (14:06 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Mar 2009 19:22:42 +0000 (11:22 -0800)
commitc2e9364a06df55e70d7652d37bb4d712f6b3bb3e
treec9f3d31ccc36e6729434886ee8eea40034c8bf6b
parent3d2d4f96d240317d898bd05af567bad938e0bda2
cleanup: add isascii()

Add a standard definition of isascii() and use it to replace an open
coded high-bit test in pretty.c.  While we're there, write the ESC
char as the more commonly used '\033' instead of as 0x1b to enhance
its grepability.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h
pretty.c