summaryrefslogtreecommitdiff
path: root/include/git2/tree.h
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2012-12-10 15:54:15 -0800
committerVicent Martí <vicent@github.com>2012-12-10 15:54:15 -0800
commit55325efa1d1dbe821da990ec9245ff0653944faa (patch)
treecb205e56dfcbf9dd4df6ed150f152106aa6da342 /include/git2/tree.h
parent4cbe9a1be18338b7e223b42e6019c58181204123 (diff)
parent91e7d26303b17c7ebc45ba565247e968aaa20848 (diff)
downloadlibgit2-55325efa1d1dbe821da990ec9245ff0653944faa.tar.gz
Merge pull request #1133 from arrbee/more-iterator-cleanup
More iterator cleanup
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 2d3534fab..b3c22e71d 100644
--- a/include/git2/tree.h
+++ b/include/git2/tree.h
@@ -81,6 +81,14 @@ GIT_INLINE(void) git_tree_free(git_tree *tree)
GIT_EXTERN(const git_oid *) git_tree_id(const git_tree *tree);
/**
+ * Get the repository that contains the tree.
+ *
+ * @param tree A previously loaded tree.
+ * @return Repository that contains this tree.
+ */
+GIT_EXTERN(git_repository *) git_tree_owner(const git_tree *tree);
+
+/**
* Get the number of entries listed in a tree
*
* @param tree a previously loaded tree.