summaryrefslogtreecommitdiff
path: root/cache-tree.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-20 10:58:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-04-20 11:16:41 (GMT)
commitb9d37a5420446d0db2dc0dc5458a5e50656a4852 (patch)
tree1544417a886e6fd46ea5f786c8ac74744719ba56 /cache-tree.h
parent8cc21ce78c2f3781024117047c0650861f890213 (diff)
downloadgit-b9d37a5420446d0db2dc0dc5458a5e50656a4852.zip
git-b9d37a5420446d0db2dc0dc5458a5e50656a4852.tar.gz
git-b9d37a5420446d0db2dc0dc5458a5e50656a4852.tar.bz2
Move prime_cache_tree() to cache-tree.c
The interface to build cache-tree belongs there. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache-tree.h')
-rw-r--r--cache-tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cache-tree.h b/cache-tree.h
index cf8b790..e958835 100644
--- a/cache-tree.h
+++ b/cache-tree.h
@@ -1,6 +1,8 @@
#ifndef CACHE_TREE_H
#define CACHE_TREE_H
+#include "tree.h"
+
struct cache_tree;
struct cache_tree_sub {
struct cache_tree *cache_tree;
@@ -33,4 +35,6 @@ int cache_tree_update(struct cache_tree *, struct cache_entry **, int, int, int)
#define WRITE_TREE_PREFIX_ERROR (-3)
int write_cache_as_tree(unsigned char *sha1, int missing_ok, const char *prefix);
+void prime_cache_tree(struct cache_tree **, struct tree *);
+
#endif