summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-01-26 13:10:36 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-06-20 17:05:29 -0400
commit14798060a639924c7cd9cae3234abfe2d5327aff (patch)
treefff5fef20298eece5c6981e80ebf759576d9c8a5
parent817324134cd24b1ac20ea8df737348c12ca34691 (diff)
downloadlibgit2-14798060a639924c7cd9cae3234abfe2d5327aff.tar.gz
oid: specify a default implementation
libgit2's current default oid type is SHA1, set a public macro for that.
-rw-r--r--include/git2/oid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/oid.h b/include/git2/oid.h
index 924c680cc..6136e2858 100644
--- a/include/git2/oid.h
+++ b/include/git2/oid.h
@@ -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