Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-01-21 01:43:27 +0300
committerVicent Marti <tanoku@gmail.com>2011-01-21 01:43:27 +0300
commitc8f5ff8f65617e6e097dd779492bd7af47232d4f (patch)
treed7ec9ee0fa5c4d9b1dcda5320c7d40795e9616c0 /src/tree.h
parente16c2f6a4cfff50907699d73daad2c10565ec686 (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.h1
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);