diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2015-12-06 22:16:35 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-12-14 13:35:54 -0800 |
commit | 3e56e7245c37ce57dde72ec74ee2df41ce603dda (patch) | |
tree | ad20168d8fa1b6a8fe6a4b2ba10e7f862993cf1d /cache.h | |
parent | fcd30b138759a2ab5ecb55758c3341f0d608df2b (diff) | |
download | git-3e56e7245c37ce57dde72ec74ee2df41ce603dda.tar.gz |
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 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -813,6 +813,7 @@ extern const char *find_unique_abbrev(const unsigned char *sha1, int len); extern int find_unique_abbrev_r(char *hex, const unsigned char *sha1, int len); extern const unsigned char null_sha1[GIT_SHA1_RAWSZ]; +extern const struct object_id null_oid; static inline int hashcmp(const unsigned char *sha1, const unsigned char *sha2) { |