diff options
author | Edward Thomson <ethomson@github.com> | 2016-03-21 21:29:33 -0700 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-03-21 21:29:33 -0700 |
commit | 7adca53ed653802663096b8c2977a03dbe39c601 (patch) | |
tree | 27ef3a12b403a4c8b9164594deb9364cfbebe05c /src/tree.h | |
parent | ec5a43b60ab0dfcb42db8101edfca34be3d62947 (diff) | |
parent | 4ed9e939e2e44d202799b2562ac95eb9da5689e3 (diff) | |
download | libgit2-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.h | 8 |
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 { |