diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2014-07-11 11:52:38 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-10 19:37:48 +0200 |
| commit | 46bb00673013a7dae1ee81c484ac05c533ed1c4d (patch) | |
| tree | 57348807cc417c2128f50ad60a461665efb10ffd /src/tree-cache.h | |
| parent | ee4db1c16eda223477d4723724471d26ed188831 (diff) | |
| download | libgit2-46bb00673013a7dae1ee81c484ac05c533ed1c4d.tar.gz | |
tree-cache: remove the parent pointer
This wasn't used. We invalidate based on the full path, so we always go
down the tree, never up.
Diffstat (limited to 'src/tree-cache.h')
| -rw-r--r-- | src/tree-cache.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tree-cache.h b/src/tree-cache.h index d75049d8b..b92a401a6 100644 --- a/src/tree-cache.h +++ b/src/tree-cache.h @@ -12,8 +12,7 @@ #include "pool.h" #include "git2/oid.h" -typedef struct { - struct git_tree_cache *parent; +typedef struct git_tree_cache { struct git_tree_cache **children; size_t children_count; @@ -26,7 +25,7 @@ typedef struct { int git_tree_cache_read(git_tree_cache **tree, const char *buffer, size_t buffer_size, git_pool *pool); void git_tree_cache_invalidate_path(git_tree_cache *tree, const char *path); const git_tree_cache *git_tree_cache_get(const git_tree_cache *tree, const char *path); -int git_tree_cache_new(git_tree_cache **out, const char *name, git_tree_cache *parent, git_pool *pool); +int git_tree_cache_new(git_tree_cache **out, const char *name, git_pool *pool); /** * Read a tree as the root of the tree cache (like for `git read-tree`) */ |
