Guilherme [off-list ref] writes:
I'm not sure on how i would rewrite hex.c it is just an array.
From git-compat-util.h i only needed a subset of the file (Lines 699
to 785), as you assumed, but rewriting it also seems pointless as it
is only a few defines and 4 very short functions.
I do not think I have any contributions of significance under
copyright protection in the parts of that file. The ctype-related
lines in git-compat-util.h attribute to me primarily because they
were moved by 4050c0df (Clean up compatibility definitions,
2005-12-05) from what Linus wrote in another file to the present
location.