summaryrefslogtreecommitdiff
path: root/include/git2/oid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2/oid.h')
-rw-r--r--include/git2/oid.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/oid.h b/include/git2/oid.h
index 0d0f05489..3dedae85e 100644
--- a/include/git2/oid.h
+++ b/include/git2/oid.h
@@ -36,6 +36,16 @@ typedef struct git_oid {
} git_oid;
/**
+ * The binary representation of the null object ID.
+ */
+#define GIT_OID_SHA1_ZERO { { 0 } }
+
+/**
+ * The string representation of the null object ID.
+ */
+#define GIT_OID_SHA1_HEXZERO "0000000000000000000000000000000000000000"
+
+/**
* Parse a hex formatted object id into a git_oid.
*
* @param out oid structure the result is written into.