Skip to main content

message_subject

Function message_subject 

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

Return the pretty subject for a commit or tag message.

The subject is the first non-empty paragraph with embedded line breaks collapsed to spaces. Both LF and CRLF line endings are recognized.

§Parameters

  • message — raw commit or tag message text.