libgit2

git_commit_message

Version:

Get the full message of a commit.

The returned message will be slightly prettified by removing any potential leading newlines.

Signature

const char *git_commit_message(const git_commit *commit);

Parameters

In
commit

a previously loaded commit.

Returns

const char *

the message of a commit

Versions