From 12114415ab62f7b7958f33bc7229963061b269df Mon Sep 17 00:00:00 2001 From: Justin Love Date: Tue, 30 Nov 2010 21:01:47 -0600 Subject: add git_commit_parentcount --- src/git/commit.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/git/commit.h') diff --git a/src/git/commit.h b/src/git/commit.h index 8cb3401b6..cc4e7a073 100644 --- a/src/git/commit.h +++ b/src/git/commit.h @@ -93,6 +93,14 @@ GIT_EXTERN(const git_person *) git_commit_author(git_commit *commit); */ GIT_EXTERN(const git_tree *) git_commit_tree(git_commit *commit); +/** + * Get the number of parents of this commit + * + * @param commit a previously loaded commit. + * @return integer of count of parents + */ +GIT_EXTERN(unsigned int) git_commit_parentcount(git_commit *commit); + /** * Add a new parent commit to an existing commit * @param commit the commit object -- cgit v1.2.1