summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorpunkymaniac <punkymaniac@protonmail.ch>2021-11-26 15:14:56 +0100
committerpunkymaniac <punkymaniac@protonmail.ch>2022-01-09 10:17:51 +0100
commit68bc511abb8574b843209685e0f05a88856d7ecf (patch)
tree33a6b33ea5a25faa708f999a489def55777d3df9 /include/git2/commit.h
parent03aed8bca7473c51148e5fdf8a258bc57f452a85 (diff)
downloadlibgit2-68bc511abb8574b843209685e0f05a88856d7ecf.tar.gz
Add documentation about parameter and return value
Diffstat (limited to 'include/git2/commit.h')
-rw-r--r--include/git2/commit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/git2/commit.h b/include/git2/commit.h
index 4d74b8994..29e7271ea 100644
--- a/include/git2/commit.h
+++ b/include/git2/commit.h
@@ -479,6 +479,7 @@ GIT_EXTERN(int) git_commit_create_buffer(
* to the commit and write it into the given repository.
*
* @param out the resulting commit id
+ * @param repository the repository where to create the commit.
* @param commit_content the content of the unsigned commit object
* @param signature the signature to add to the commit. Leave `NULL`
* to create a commit without adding a signature field.
@@ -499,6 +500,7 @@ GIT_EXTERN(int) git_commit_create_with_signature(
*
* @param out Pointer to store the copy of the commit
* @param source Original commit to copy
+ * @return 0
*/
GIT_EXTERN(int) git_commit_dup(git_commit **out, git_commit *source);