aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-11-16 00:48:59 -0800
committerJunio C Hamano <gitster@pobox.com>2008-11-16 00:48:59 -0800
commit47a792539a48327e62c594f2befb5c5d1e58c0f2 (patch)
tree2a4cc395a0686640abea8b3fe75ff3667b7e0475 /cache.h
parent8c4021abfd170278d1a3431e2777bedd0c01fbb1 (diff)
parent1324fb6f161ee516eb4c597880847003a42c0c5d (diff)
downloadgit-47a792539a48327e62c594f2befb5c5d1e58c0f2.tar.gz
git-47a792539a48327e62c594f2befb5c5d1e58c0f2.tar.xz
Merge branch 'jk/commit-v-strip'
* jk/commit-v-strip: status: show "-v" diff even for initial commit wt-status: refactor initial commit printing define empty tree sha1 as a macro
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 3b5f0c4c0..7efba7756 100644
--- a/cache.h
+++ b/cache.h
@@ -530,6 +530,12 @@ static inline void hashclr(unsigned char *hash)
}
extern int is_empty_blob_sha1(const unsigned char *sha1);
+#define EMPTY_TREE_SHA1_HEX \
+ "4b825dc642cb6eb9a060e54bf8d69288fbee4904"
+#define EMPTY_TREE_SHA1_BIN \
+ "\x4b\x82\x5d\xc6\x42\xcb\x6e\xb9\xa0\x60" \
+ "\xe5\x4b\xf8\xd6\x92\x88\xfb\xee\x49\x04"
+
int git_mkstemp(char *path, size_t n, const char *template);
/*