Parse N characters of a hex formatted object id into a git_oid
If N is odd, N-1 characters will be parsed instead. The remaining space in the git_oid will be set to zero.
input hex string of at least size length
length of the input string
GIT_SUCCESS if valid; GIT_ENOTOID on failure.