Commit 590991a7e05a7ba59a6f365375e2ed6f8a6f819a

Russell Belfer 2013-05-06T23:25:06

Merge pull request #1553 from jdavid/git_commit_owner Add git_commit_owner to the public interface

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/include/git2/commit.h b/include/git2/commit.h
index f536ac7..a420ba6 100644
--- a/include/git2/commit.h
+++ b/include/git2/commit.h
@@ -70,6 +70,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.
  *