From 598f069b998c42c12439f3f353b6d075905becba Mon Sep 17 00:00:00 2001 From: nulltoken Date: Wed, 2 Oct 2013 12:42:41 +0200 Subject: commit: Introduce git_commit_message_raw() --- include/git2/commit.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/git2/commit.h') diff --git a/include/git2/commit.h b/include/git2/commit.h index 0eaf917bd..a08cf1c6c 100644 --- a/include/git2/commit.h +++ b/include/git2/commit.h @@ -100,11 +100,22 @@ GIT_EXTERN(const char *) git_commit_message_encoding(const git_commit *commit); /** * Get the full message of a commit. * + * The returned message will be slightly prettified by removing any + * potential leading newlines. + * * @param commit a previously loaded commit. * @return the message of a commit */ GIT_EXTERN(const char *) git_commit_message(const git_commit *commit); +/** + * Get the full raw message of a commit. + * + * @param commit a previously loaded commit. + * @return the raw message of a commit + */ +GIT_EXTERN(const char *) git_commit_message_raw(const git_commit *commit); + /** * Get the commit time (i.e. committer time) of a commit. * -- cgit v1.2.1