mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Introduce git_revert to revert a single commit
This commit is contained in:
committed by
Edward Thomson
parent
14984af6cb
commit
300d192f7e
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user