git_message_prettify

Clean up excess whitespace and make sure there is a trailing newline in the message.

Optionally, it can remove lines which start with the comment character.

extern (C) nothrow @nogc public
int
git_message_prettify

Parameters

out_ libgit2.buffer.git_buf*

The user-allocated git_buf which will be filled with the cleaned up message.

message const(char)*

The message to be prettified.

strip_comments int

Non-zero to remove comment lines, 0 to leave them in.

comment_char char

Comment character. Lines starting with this character are considered to be comments and removed if strip_comments is non-zero.

Return Value

Type: int

0 or an error code.

Meta