diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-10-03 12:09:17 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-10-26 21:02:04 +0200 |
commit | b1be9dd0e53d25d0dc4dd4a5296e1cffd7e96bf0 (patch) | |
tree | be87a714baac6d087e0666e524a22b04659a4a48 /include/git2/index.h | |
parent | 1f87fa35951d6369bfab722a656ed43365b3579f (diff) | |
download | libgit2-b1be9dd0e53d25d0dc4dd4a5296e1cffd7e96bf0.tar.gz |
index: introduce git_index_owner()
Diffstat (limited to 'include/git2/index.h')
-rw-r--r-- | include/git2/index.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/index.h b/include/git2/index.h index d8282e80f..e8af3620d 100644 --- a/include/git2/index.h +++ b/include/git2/index.h @@ -347,6 +347,14 @@ GIT_EXTERN(int) git_index_entry_stage(const git_index_entry *entry); */ GIT_EXTERN(int) git_index_read_tree(git_index *index, git_tree *tree); +/** + * Get the repository this index relates to + * + * @param index The index + * @return A pointer to the repository + */ +GIT_EXTERN(git_repository *) git_index_owner(const git_index *index); + /** @} */ GIT_END_DECL #endif |