git_commit_message_encoding

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.

extern (C) nothrow @nogc
const(char)*
git_commit_message_encoding

Parameters

commit const(libgit2_d.types.git_commit)*

a previously loaded commit.

Return Value

Type: const(char)*

null, or the encoding

Meta