From 300d192f7ed45112121f2a35d5ca80a4913c7aad Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 2 Dec 2013 11:15:27 -0500 Subject: Introduce git_revert to revert a single commit --- 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 a08cf1c6c..8b03df0a9 100644 --- a/include/git2/commit.h +++ b/include/git2/commit.h @@ -116,6 +116,17 @@ GIT_EXTERN(const char *) git_commit_message(const git_commit *commit); */ GIT_EXTERN(const char *) git_commit_message_raw(const git_commit *commit); +/** + * Get the short "summary" of the git commit message. + * + * The returned message is the summary of the commit, comprising the + * first paragraph of the message with whitespace trimmed and squashed. + * + * @param commit a previously loaded commit. + * @return the summary of a commit or NULL on error + */ +GIT_EXTERN(const char *) git_commit_summary(git_commit *commit); + /** * Get the commit time (i.e. committer time) of a commit. * -- cgit v1.2.1