]>
git.proxmox.com Git - libgit2.git/blob - src/tree-cache.h
2 * Copyright (C) the libgit2 contributors. All rights reserved.
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
8 #ifndef INCLUDE_tree_cache_h__
9 #define INCLUDE_tree_cache_h__
15 struct git_tree_cache
*parent
;
16 struct git_tree_cache
**children
;
17 size_t children_count
;
22 char name
[GIT_FLEX_ARRAY
];
25 int git_tree_cache_read(git_tree_cache
**tree
, const char *buffer
, size_t buffer_size
);
26 void git_tree_cache_invalidate_path(git_tree_cache
*tree
, const char *path
);
27 const git_tree_cache
*git_tree_cache_get(const git_tree_cache
*tree
, const char *path
);
28 void git_tree_cache_free(git_tree_cache
*tree
);