]> git.ipfire.org Git - thirdparty/git.git/commit - hex.c
introduce hex2chr() for converting two hexadecimal digits to a character
authorRené Scharfe <l.s.r@web.de>
Sat, 3 Sep 2016 15:59:20 +0000 (17:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Sep 2016 17:42:46 +0000 (10:42 -0700)
commitd23309733a5b2a9e1adc304ee50c5a5ed7a087c2
treec1555e8fce5bdf708b48fb43391c98002dcd3716
parente0c1ceafc5bece92d35773a75fff59497e1d9bd5
introduce hex2chr() for converting two hexadecimal digits to a character

Add and use a helper function that decodes the char value of two
hexadecimal digits.  It returns a negative number on error, avoids
running over the end of the given string and doesn't shift negative
values.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
hex.c
pkt-line.c
pretty.c
ref-filter.c
url.c