diff options
author | Tyler Ang-Wanek <tylerw@axosoft.com> | 2019-07-02 09:53:49 -0700 |
---|---|---|
committer | Tyler Ang-Wanek <tylerw@axosoft.com> | 2019-07-02 09:56:19 -0700 |
commit | 759471056f1d9fe36dde447e0ce08ba3ce13a7be (patch) | |
tree | e76a40b5dadcb7f7e8935839a8f76f268f4dbe8e /include/git2/commit.h | |
parent | 3b8a6f43974e23a554d852e09fb3a0d94accf6dc (diff) | |
download | libgit2-759471056f1d9fe36dde447e0ce08ba3ce13a7be.tar.gz |
commit: git_commit_create_with_signature should support null signature
If provided with a null signature, skip adding the signature header and create the commit anyway.
Diffstat (limited to 'include/git2/commit.h')
-rw-r--r-- | include/git2/commit.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/commit.h b/include/git2/commit.h index a50ff58ce..230448436 100644 --- a/include/git2/commit.h +++ b/include/git2/commit.h @@ -480,7 +480,8 @@ GIT_EXTERN(int) git_commit_create_buffer( * * @param out the resulting commit id * @param commit_content the content of the unsigned commit object - * @param signature the signature to add to the commit + * @param signature the signature to add to the commit. Leave `NULL` + * to create a commit without adding a signature field. * @param signature_field which header field should contain this * signature. Leave `NULL` for the default of "gpgsig" * @return 0 or an error code |