Skip to main content

message_body

Function message_body 

Source
pub fn message_body(message: &str) -> &str
Expand description

Return the body slice after the first message paragraph.

Leading blank lines before the first paragraph are ignored. The returned body starts after the blank-line separator and any additional blank lines, preserving the original body line endings and trailing newline bytes.

§Parameters

  • message — raw commit or tag message text.