libgit2

git_commit_summary

Version:

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.

Signature

const char *git_commit_summary(git_commit *commit);

Parameters

In
commit

a previously loaded commit.

Returns

const char *

the summary of a commit or NULL on error

Versions