summaryrefslogtreecommitdiff
path: root/src/tree.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-03-21 21:29:33 -0700
committerEdward Thomson <ethomson@github.com>2016-03-21 21:29:33 -0700
commit7adca53ed653802663096b8c2977a03dbe39c601 (patch)
tree27ef3a12b403a4c8b9164594deb9364cfbebe05c /src/tree.h
parentec5a43b60ab0dfcb42db8101edfca34be3d62947 (diff)
parent4ed9e939e2e44d202799b2562ac95eb9da5689e3 (diff)
downloadlibgit2-7adca53ed653802663096b8c2977a03dbe39c601.tar.gz
Merge pull request #3702 from libgit2/cmn/tree-reuse
Reuse a tree's buffer and allocate constant-sized entries in an array
Diffstat (limited to 'src/tree.h')
-rw-r--r--src/tree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tree.h b/src/tree.h
index 914d788c8..a108d964c 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -17,15 +17,15 @@
struct git_tree_entry {
uint16_t attr;
uint16_t filename_len;
- git_oid oid;
- bool pooled;
- char filename[GIT_FLEX_ARRAY];
+ const git_oid *oid;
+ const char *filename;
};
struct git_tree {
git_object object;
+ git_odb_object *odb_obj;
+ git_array_t(git_tree_entry) entries_arr;
git_vector entries;
- git_pool pool;
};
struct git_treebuilder {