summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-12-02 11:15:27 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2013-12-02 16:57:41 -0600
commit300d192f7ed45112121f2a35d5ca80a4913c7aad (patch)
treea3000995c66950ae009cd3e7f24153bf3683fb78 /include/git2/commit.h
parent14984af6cb9906746d2c64c5df7542ecd7406b16 (diff)
downloadlibgit2-300d192f7ed45112121f2a35d5ca80a4913c7aad.tar.gz
Introduce git_revert to revert a single commit
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 a08cf1c6c..8b03df0a9 100644
--- a/include/git2/commit.h
+++ b/include/git2/commit.h
@@ -117,6 +117,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.
*
* @param commit a previously loaded commit.