git_trailers

Function parse

Source
pub fn parse<'a>(
    message: &'a str,
    separators: &'a str,
) -> Result<Vec<Trailer<'a>>, Error>
Expand description

Parse the trailers of the given message. It looks up the last paragraph of the message and attempts to parse each of its lines as a Trailer. Fails if no trailers paragraph is found or if at least one trailer fails to be parsed.