Format a git_oid into a buffer as a hex format c-string.
If the buffer is smaller than the size of a hex-formatted oid string
plus an additional byte (GIT_OID_SHA_HEXSIZE + 1 for SHA1 or
GIT_OID_SHA256_HEXSIZE + 1 for SHA256), then the resulting
oid c-string will be truncated to n-1 characters (but will still be
null-byte terminated).
If there are any input parameter errors (out == null, n == 0, oid ==
null), then a pointer to an empty string is returned, so that the
return value can always be printed.
Format a git_oid into a buffer as a hex format c-string.
If the buffer is smaller than the size of a hex-formatted oid string plus an additional byte (GIT_OID_SHA_HEXSIZE + 1 for SHA1 or GIT_OID_SHA256_HEXSIZE + 1 for SHA256), then the resulting oid c-string will be truncated to n-1 characters (but will still be null-byte terminated).
If there are any input parameter errors (out == null, n == 0, oid == null), then a pointer to an empty string is returned, so that the return value can always be printed.