summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2017-02-13 14:38:12 +0000
committerGitHub <noreply@github.com>2017-02-13 14:38:12 +0000
commita59545de5e57769f858ed2657b9fb850675f227f (patch)
tree9b6e2fa1bd5d7d8425f19207d3eb18eec9b6976d /include/git2
parentc576d4fff23acc3139a4f1fa422cb08884ea3a9d (diff)
parentade0d9c658fdfc68d8046935f6908f033fe7a529 (diff)
downloadlibgit2-a59545de5e57769f858ed2657b9fb850675f227f.tar.gz
Merge pull request #4122 from pks-t/pks/signature-dbl-free
Signature cleanups
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/commit.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/git2/commit.h b/include/git2/commit.h
index 4cc637466..692b3bdd9 100644
--- a/include/git2/commit.h
+++ b/include/git2/commit.h
@@ -255,7 +255,8 @@ GIT_EXTERN(int) git_commit_nth_gen_ancestor(
/**
* Get an arbitrary header field
*
- * @param out the buffer to fill
+ * @param out the buffer to fill; existing content will be
+ * overwritten
* @param commit the commit to look in
* @param field the header field to return
* @return 0 on succeess, GIT_ENOTFOUND if the field does not exist,
@@ -270,8 +271,10 @@ GIT_EXTERN(int) git_commit_header_field(git_buf *out, const git_commit *commit,
* `GITERR_INVALID`. If the commit does not have a signature, the
* error class will be `GITERR_OBJECT`.
*
- * @param signature the signature block
- * @param signed_data signed data; this is the commit contents minus the signature block
+ * @param signature the signature block; existing content will be
+ * overwritten
+ * @param signed_data signed data; this is the commit contents minus the signature block;
+ * existing content will be overwritten
* @param repo the repository in which the commit exists
* @param commit_id the commit from which to extract the data
* @param field the name of the header field containing the signature