diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-01-21 01:43:27 +0300 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-01-21 01:43:27 +0300 |
commit | c8f5ff8f65617e6e097dd779492bd7af47232d4f (patch) | |
tree | d7ec9ee0fa5c4d9b1dcda5320c7d40795e9616c0 /src/tree.h | |
parent | e16c2f6a4cfff50907699d73daad2c10565ec686 (diff) |
Fix initialization of in-memory trees
In-memory tree objects were not being properly initialized, because the
internal entries vector was created on the 'parse' method.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/tree.h')
-rw-r--r-- | src/tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tree.h b/src/tree.h index 5f532f887..78500c471 100644 --- a/src/tree.h +++ b/src/tree.h @@ -19,6 +19,7 @@ struct git_tree { }; void git_tree__free(git_tree *tree); +git_tree *git_tree__new(void); int git_tree__parse(git_tree *tree); int git_tree__writeback(git_tree *tree, git_odb_source *src); |