diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-12-11 12:00:26 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-06-14 22:29:57 -0400 |
commit | 74ffce20780783e20668f7ac9d543cfc3e03fe0c (patch) | |
tree | 006755a55aa2daa00209d80fda14a7ffcec4895a | |
parent | 0acaf3a8eb7c3276b7864df8f5588c7007b38f35 (diff) | |
download | libgit2-74ffce20780783e20668f7ac9d543cfc3e03fe0c.tar.gz |
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.
-rw-r--r-- | include/git2/oid.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/git2/oid.h b/include/git2/oid.h index 3dedae85e..8f92e75c9 100644 --- a/include/git2/oid.h +++ b/include/git2/oid.h @@ -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 |