mirror of
https://github.com/git/git.git
synced 2025-12-23 12:14:22 +01:00
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>
2.4 KiB
2.4 KiB