diff options
Diffstat (limited to 'src/git/commit.h')
-rw-r--r-- | src/git/commit.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/git/commit.h b/src/git/commit.h index 70b08e94f..056997f45 100644 --- a/src/git/commit.h +++ b/src/git/commit.h @@ -113,8 +113,9 @@ GIT_EXTERN(git_commit *) git_commit_parent(git_commit *commit, unsigned int n); * 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 + * @return 0 on success; error code otherwise */ -GIT_EXTERN(void) git_commit_add_parent(git_commit *commit, git_commit *new_parent); +GIT_EXTERN(int) git_commit_add_parent(git_commit *commit, git_commit *new_parent); /** * Set the message of a commit |