diff options
author | Vicent Martà <vicent@github.com> | 2012-12-10 15:54:15 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2012-12-10 15:54:15 -0800 |
commit | 55325efa1d1dbe821da990ec9245ff0653944faa (patch) | |
tree | cb205e56dfcbf9dd4df6ed150f152106aa6da342 /include/git2/tree.h | |
parent | 4cbe9a1be18338b7e223b42e6019c58181204123 (diff) | |
parent | 91e7d26303b17c7ebc45ba565247e968aaa20848 (diff) | |
download | libgit2-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.h | 8 |
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. |