summaryrefslogtreecommitdiff
path: root/src/index.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-07-26 11:34:54 +0200
committerVicent Marti <tanoku@gmail.com>2011-09-27 14:33:18 +0200
commitb41713206b83bdf88522ae789b56630bb6e0a4bc (patch)
treebcc022a59fa7ca69c5d5473d1d243e35b4b3e0e7 /src/index.h
parent01d7fded1b233b6a8fcfeec4eaf00b7dc9cc7316 (diff)
downloadlibgit2-b41713206b83bdf88522ae789b56630bb6e0a4bc.tar.gz
Move the tree cache functions to their own file
Rename git_index_tree to git_tree_cache. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'src/index.h')
-rw-r--r--src/index.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/index.h b/src/index.h
index 76633a96a..e912770b7 100644
--- a/src/index.h
+++ b/src/index.h
@@ -10,22 +10,10 @@
#include "fileops.h"
#include "filebuf.h"
#include "vector.h"
+#include "tree-cache.h"
#include "git2/odb.h"
#include "git2/index.h"
-struct git_index_tree {
- char *name;
-
- struct git_index_tree *parent;
- struct git_index_tree **children;
- size_t children_count;
-
- size_t entries;
- git_oid oid;
-};
-
-typedef struct git_index_tree git_index_tree;
-
struct git_index {
git_repository *repository;
char *index_file_path;
@@ -34,7 +22,7 @@ struct git_index {
git_vector entries;
unsigned int on_disk:1;
- git_index_tree *tree;
+ git_tree_cache *tree;
git_vector unmerged;
};