summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@fpcomplete.com>2013-01-28 15:56:04 -0600
committerJohn Wiegley <johnw@fpcomplete.com>2013-01-28 16:35:43 -0600
commit5fb982066452b08da2434d5148c1539847dff838 (patch)
tree7c4cfc4cdfa198caae749cd0d1cb419c955a27e2 /src
parent96447d24f32052bf2755085eaab491e8f3ec9f56 (diff)
downloadlibgit2-5fb982066452b08da2434d5148c1539847dff838.tar.gz
Added git_treebuilder_entrycount
Conflicts: src/tree.c
Diffstat (limited to 'src')
-rw-r--r--src/tree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c
index c34e9b940..f64ff3250 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -340,6 +340,12 @@ size_t git_tree_entrycount(const git_tree *tree)
return tree->entries.length;
}
+unsigned int git_treebuilder_entrycount(git_treebuilder *bld)
+{
+ assert(bld);
+ return bld->entries.length;
+}
+
static int tree_error(const char *str, const char *path)
{
if (path)