summaryrefslogtreecommitdiff
path: root/include/git2/tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2/tree.h')
-rw-r--r--include/git2/tree.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/tree.h b/include/git2/tree.h
index 3861102d9..73bfc86f4 100644
--- a/include/git2/tree.h
+++ b/include/git2/tree.h
@@ -259,6 +259,14 @@ GIT_EXTERN(int) git_treebuilder_create(
GIT_EXTERN(void) git_treebuilder_clear(git_treebuilder *bld);
/**
+ * Get the number of entries listed in a treebuilder
+ *
+ * @param tree a previously loaded treebuilder.
+ * @return the number of entries in the treebuilder
+ */
+GIT_EXTERN(unsigned int) git_treebuilder_entrycount(git_treebuilder *bld);
+
+/**
* Free a tree builder
*
* This will clear all the entries and free to builder.