summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-05-06 23:25:06 -0700
committerRussell Belfer <rb@github.com>2013-05-06 23:25:06 -0700
commit590991a7e05a7ba59a6f365375e2ed6f8a6f819a (patch)
treeae46892c9d720123ea36d864d7f85743a861f566 /include/git2/commit.h
parent3405f78754703948475b4677d03fcdbfb099b6a4 (diff)
parent6e8659969a9e8e74cb9531454861d256e819e2a6 (diff)
downloadlibgit2-590991a7e05a7ba59a6f365375e2ed6f8a6f819a.tar.gz
Merge pull request #1553 from jdavid/git_commit_owner
Add git_commit_owner to the public interface
Diffstat (limited to 'include/git2/commit.h')
-rw-r--r--include/git2/commit.h8
1 files changed, 8 insertions, 0 deletions
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
@@ -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.
*