summaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tree.c')
-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)