diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-12-02 04:58:22 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-12-02 04:58:22 +0200 |
commit | eec952351363354cad2e094a10d8545e4d2a996f (patch) | |
tree | 901189c584a5bbe12d0387ff6cb2de174d55f069 /src/git/commit.h | |
parent | 41109a7e7eb4544dc64c563d947f6655d45c1a28 (diff) | |
download | libgit2-eec952351363354cad2e094a10d8545e4d2a996f.tar.gz |
Commit parents now use the common 'vector' code
No more linked lists, no more O(n) access.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
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 |