summaryrefslogtreecommitdiffstats
path: root/sha1-file.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2019-08-18 22:04:20 +0200
committerJunio C Hamano <gitster@pobox.com>2019-08-20 00:04:59 +0200
commit8d4d86b0f0a875e7916d7de083a88d7f11251406 (patch)
tree1b99e2d667ac3845e60f32e69862eed1a9b38ec6 /sha1-file.c
parentbuiltin/worktree: switch null_sha1 to null_oid (diff)
downloadgit-8d4d86b0f0a875e7916d7de083a88d7f11251406.tar.xz
git-8d4d86b0f0a875e7916d7de083a88d7f11251406.zip
cache: remove null_sha1
All of the existing uses of null_sha1 can be converted into uses of null_oid, so do so. Remove null_sha1 and is_null_sha1, and define is_null_oid in terms of null_oid. This also has the additional benefit of removing several uses of sha1_to_hex. 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, 0 insertions, 1 deletions
diff --git a/sha1-file.c b/sha1-file.c
index 487ea35d2d..0ea28f7da3 100644
--- a/sha1-file.c
+++ b/sha1-file.c
@@ -55,7 +55,6 @@
"\x6f\xe1\x41\xf7\x74\x91\x20\xa3\x03\x72" \
"\x18\x13"
-const unsigned char null_sha1[GIT_MAX_RAWSZ];
const struct object_id null_oid;
static const struct object_id empty_tree_oid = {
EMPTY_TREE_SHA1_BIN_LITERAL