Introduce git_revert to revert a single commit

This commit is contained in:
Edward Thomson
2013-12-02 11:15:27 -05:00
committed by Edward Thomson
parent 14984af6cb
commit 300d192f7e
56 changed files with 822 additions and 8 deletions

View File

@@ -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.
*