Skip to main content

render_subject

Function render_subject 

Source
pub fn render_subject(
    placement: Gitmoji,
    prefix: &str,
    scope: &str,
    breaking: &str,
    description: &str,
) -> String
Expand description

The one place a decorated subject line is built.

commit-msg writes the real thing and amont setup renders the menu through the same function, so the example somebody chooses from is produced by the code that will run — not by a string that has to be kept in step with it.