Skip to main content

parse_subject

Function parse_subject 

Source
pub fn parse_subject(first_line: &str) -> Option<ParsedSubject<'_>>
Expand description

Parses a commit subject line (the first line of a commit message) into its conventional-commit parts. Returns None when the subject doesn’t match type(scope)?!?: description in any accepted form.