summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-12-12 09:56:28 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-06-14 22:29:57 -0400
commitc43601160b6ecc66db4a26c784bbe62624305474 (patch)
treeb7def5f85905e2ba0411626c6d2ebeb340e83fc2 /include
parent0b068214a5a28afb949776097a1b6f9da65dffd2 (diff)
downloadlibgit2-c43601160b6ecc66db4a26c784bbe62624305474.tar.gz
oid: include maximum oid raw/hex sizes
Diffstat (limited to 'include')
-rw-r--r--include/git2/oid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/git2/oid.h b/include/git2/oid.h
index 8f92e75c9..db433a0b4 100644
--- a/include/git2/oid.h
+++ b/include/git2/oid.h
@@ -26,9 +26,11 @@ typedef enum {
/** Size (in bytes) of a raw/binary oid */
#define GIT_OID_SHA1_SIZE 20
+#define GIT_OID_MAX_SIZE GIT_OID_SHA1_SIZE
/** Size (in bytes) of a hex formatted oid */
#define GIT_OID_SHA1_HEXSIZE (GIT_OID_SHA1_SIZE * 2)
+#define GIT_OID_MAX_HEXSIZE GIT_OID_SHA1_HEXSIZE
/** Minimum length (in number of hex characters,
* i.e. packets of 4 bits) of an oid prefix */