summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-11-12 03:17:52 -0500
committerJunio C Hamano <gitster@pobox.com>2008-11-12 12:52:21 -0800
commit14d9c578961ab834bfb0e26481d0212bc0670883 (patch)
tree3f121bf7852b0b01486f7b17d51321eee5a4b41c /sha1_file.c
parent2baf1850ceb01dfbee862e30f2a69cf6064e13eb (diff)
downloadgit-14d9c578961ab834bfb0e26481d0212bc0670883.tar.gz
define empty tree sha1 as a macro
This can potentially be used in a few places, so let's make it available to all parts of the code. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sha1_file.c b/sha1_file.c
index ab2b520f03..1489d04d03 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -1996,9 +1996,7 @@ static struct cached_object {
static int cached_object_nr, cached_object_alloc;
static struct cached_object empty_tree = {
- /* empty tree sha1: 4b825dc642cb6eb9a060e54bf8d69288fbee4904 */
- "\x4b\x82\x5d\xc6\x42\xcb\x6e\xb9\xa0\x60"
- "\xe5\x4b\xf8\xd6\x92\x88\xfb\xee\x49\x04",
+ EMPTY_TREE_SHA1_BIN,
OBJ_TREE,
"",
0