diff options
author | Carlos Martín Nieto <cmn@elego.de> | 2011-07-26 11:34:54 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-09-27 14:33:18 +0200 |
commit | b41713206b83bdf88522ae789b56630bb6e0a4bc (patch) | |
tree | bcc022a59fa7ca69c5d5473d1d243e35b4b3e0e7 /src/index.h | |
parent | 01d7fded1b233b6a8fcfeec4eaf00b7dc9cc7316 (diff) | |
download | libgit2-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.h | 16 |
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; }; |