summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-10-03 04:36:29 -0700
committerVicent Martí <vicent@github.com>2013-10-03 04:36:29 -0700
commitab1368766240cfe861729642abe1cddd01c0203e (patch)
treed52d30b9d900a056c7c8930e93e598af624d255c /include/git2/commit.h
parentc8f2ba994460de75f1cbd3b35fb52d8a5334b59a (diff)
parent598f069b998c42c12439f3f353b6d075905becba (diff)
downloadlibgit2-ab1368766240cfe861729642abe1cddd01c0203e.tar.gz
Merge pull request #1887 from libgit2/ntk/topic/git_message_raw
commit: Introduce git_commit_message_raw()
Diffstat (limited to 'include/git2/commit.h')
-rw-r--r--include/git2/commit.h11
1 files changed, 11 insertions, 0 deletions
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,12 +100,23 @@ 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.
*
* @param commit a previously loaded commit.