Commit 14798060 by Edward Thomson

oid: specify a default implementation

libgit2's current default oid type is SHA1, set a public macro for that.
parent 81732413
......@@ -25,6 +25,9 @@ typedef enum {
GIT_OID_SHA256 = 2 /**< SHA256 */
} git_oid_t;
/** SHA1 is currently libgit2's default oid type. */
#define GIT_OID_DEFAULT GIT_OID_SHA1
/** Size (in bytes) of a raw/binary oid */
#define GIT_OID_SHA1_SIZE 20
#define GIT_OID_SHA256_SIZE 32
......
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