Commit 74ffce20 by Edward Thomson

oid: introduce `git_oid_t`

We require an enumeration to help us identify the different types of
object IDs.  Currently, we only support SHA1 but we will support SHA256
in the future.
parent 0acaf3a8
......@@ -19,6 +19,11 @@
*/
GIT_BEGIN_DECL
/** The type of object id, currently only SHA1. */
typedef enum {
GIT_OID_SHA1 = 1 /**< SHA1 */
} git_oid_t;
/** Size (in bytes) of a raw/binary oid */
#define GIT_OID_SHA1_SIZE 20
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment