Check if an oid equals an hex formatted object id.
oid structure.
input hex string of an object id.
GIT_ENOTOID if str is not a valid hex string, GIT_SUCCESS in case of a match, GIT_ERROR otherwise.