diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-26 13:10:36 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-07-07 23:17:08 -0400 |
commit | 7a897dfafaf5c78cd0089eddefddd066a20adbf0 (patch) | |
tree | 104f3be16634c4dd4c596733995dd8340c9e479f | |
parent | 8647077686ce41238de3f6bc8164b2615d16552b (diff) | |
download | libgit2-7a897dfafaf5c78cd0089eddefddd066a20adbf0.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.h | 3 |
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 |