diff options
author | Vicent Marti <vicent@github.com> | 2014-05-19 12:21:37 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-05-19 12:21:37 +0200 |
commit | 52b597b66e051e362b98c10492a51c4601b45985 (patch) | |
tree | 77c0bf69364e1c61a39d5b08972b79b51f7ca2a0 /include/git2/message.h | |
parent | 138af33717063df8221a44a056370fbcc6c5291b (diff) | |
parent | 49e369b29d5bde227b162dd4681ecccff2f443df (diff) | |
download | libgit2-52b597b66e051e362b98c10492a51c4601b45985.tar.gz |
Merge pull request #2364 from libgit2/cmn/comment-char
message: don't assume the comment char
Diffstat (limited to 'include/git2/message.h')
-rw-r--r-- | include/git2/message.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/git2/message.h b/include/git2/message.h index bcdb72f6a..d78b1dce5 100644 --- a/include/git2/message.h +++ b/include/git2/message.h @@ -29,12 +29,14 @@ GIT_BEGIN_DECL * * @param message The message to be prettified. * - * @param strip_comments Non-zero to remove lines starting with "#", 0 to - * leave them in. + * @param strip_comments Non-zero to remove comment lines, 0 to leave them in. + * + * @param comment_char Comment character. Lines starting with this character + * are considered to be comments and removed if `strip_comments` is non-zero. * * @return 0 or an error code. */ -GIT_EXTERN(int) git_message_prettify(git_buf *out, const char *message, int strip_comments); +GIT_EXTERN(int) git_message_prettify(git_buf *out, const char *message, int strip_comments, char comment_char); /** @} */ GIT_END_DECL |