libgit2

git_commit_message_encoding

Version:

Get the encoding for the message of a commit, as a string representing a standard encoding name.

The encoding may be NULL if the encoding header in the commit is missing; in that case UTF-8 is assumed.

Signature

const char *git_commit_message_encoding(const git_commit *commit);

Parameters

In
commit

a previously loaded commit.

Returns

const char *

NULL, or the encoding

Versions