From 6e8659969a9e8e74cb9531454861d256e819e2a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= Date: Tue, 7 May 2013 07:33:35 +0200 Subject: [PATCH] Add git_commit_owner to the public interface Just like git_tree_owner, etc. --- include/git2/commit.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/git2/commit.h b/include/git2/commit.h index f536ac7c8..a420ba635 100644 --- a/include/git2/commit.h +++ b/include/git2/commit.h @@ -69,6 +69,14 @@ GIT_EXTERN(void) git_commit_free(git_commit *commit); */ GIT_EXTERN(const git_oid *) git_commit_id(const git_commit *commit); +/** + * Get the repository that contains the commit. + * + * @param commit A previously loaded commit. + * @return Repository that contains this commit. + */ +GIT_EXTERN(git_repository *) git_commit_owner(const git_commit *commit); + /** * Get the encoding for the message of a commit, * as a string representing a standard encoding name. -- 2.39.5