Skip to content

Commit c436011

Browse files
committed
oid: include maximum oid raw/hex sizes
1 parent 0b06821 commit c436011

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/git2/oid.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ typedef enum {
2626

2727
/** Size (in bytes) of a raw/binary oid */
2828
#define GIT_OID_SHA1_SIZE 20
29+
#define GIT_OID_MAX_SIZE GIT_OID_SHA1_SIZE
2930

3031
/** Size (in bytes) of a hex formatted oid */
3132
#define GIT_OID_SHA1_HEXSIZE (GIT_OID_SHA1_SIZE * 2)
33+
#define GIT_OID_MAX_HEXSIZE GIT_OID_SHA1_HEXSIZE
3234

3335
/** Minimum length (in number of hex characters,
3436
* i.e. packets of 4 bits) of an oid prefix */

0 commit comments

Comments
 (0)