summaryrefslogtreecommitdiff
path: root/src/git/commit.h
diff options
context:
space:
mode:
authorJustin Love <git@JustinLove.name>2010-11-30 21:01:47 -0600
committerJustin Love <git@JustinLove.name>2010-11-30 21:27:12 -0600
commit12114415ab62f7b7958f33bc7229963061b269df (patch)
treec584738210817399f792b3f678e6080a4b628408 /src/git/commit.h
parent8c1f9e4dc346d650e43252fe2a653d9dfeb85cf2 (diff)
downloadlibgit2-12114415ab62f7b7958f33bc7229963061b269df.tar.gz
add git_commit_parentcount
Diffstat (limited to 'src/git/commit.h')
-rw-r--r--src/git/commit.h8
1 files changed, 8 insertions, 0 deletions
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
@@ -94,6 +94,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
* @param new_parent the new commit which will be a parent