Commit e86e81c5 by Edward Thomson

oid: make empty tree id global

Move the empty tree ID into a global space so that it can be generally
used.
parent e1415dc3
......@@ -13,6 +13,10 @@
#include <string.h>
#include <limits.h>
const git_oid git_oid__empty_tree_sha1 =
{{ 0x4b, 0x82, 0x5d, 0xc6, 0x42, 0xcb, 0x6e, 0xb9, 0xa0, 0x60,
0xe5, 0x4b, 0xf8, 0xd6, 0x92, 0x88, 0xfb, 0xee, 0x49, 0x04 }};
static char to_hex[] = "0123456789abcdef";
static int oid_error_invalid(const char *msg)
......
......@@ -11,6 +11,8 @@
#include "git2/oid.h"
extern const git_oid git_oid__empty_tree_sha1;
/**
* Format a git_oid into a newly allocated c-string.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment