summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2015-12-06 22:16:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-12-14 21:35:54 (GMT)
commit3e56e7245c37ce57dde72ec74ee2df41ce603dda (patch)
treead20168d8fa1b6a8fe6a4b2ba10e7f862993cf1d /sha1_file.c
parentfcd30b138759a2ab5ecb55758c3341f0d608df2b (diff)
downloadgit-3e56e7245c37ce57dde72ec74ee2df41ce603dda.zip
git-3e56e7245c37ce57dde72ec74ee2df41ce603dda.tar.gz
git-3e56e7245c37ce57dde72ec74ee2df41ce603dda.tar.bz2
sha1_file.c: introduce a null_oid constant
null_oid is the struct object_id equivalent to null_sha1. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 27ce7b7..a54deb0 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -36,6 +36,7 @@
static inline uintmax_t sz_fmt(size_t s) { return s; }
const unsigned char null_sha1[20];
+const struct object_id null_oid;
/*
* This is meant to hold a *small* number of objects that you would