libgit2

git_message_trailers

Version:

Parse trailers out of a message, filling the array pointed to by +arr+.

Trailers are key/value pairs in the last paragraph of a message, not including any patches or conflicts that may be present.

Signature

int git_message_trailers(git_message_trailer_array *arr, const char *message);

Parameters

In
arr

A pre-allocated git_message_trailer_array struct to be filled in with any trailers found during parsing.

const char *
In
message

The message to be parsed

Returns

int

0 on success, or non-zero on error.

Versions