Skip to main content

undecorate

Function undecorate 

Source
pub fn undecorate(subject_line: &str) -> Undecorated<'_>
Expand description

Take off a leading gitmoji that this hook wrote.

Only an emoji from COMMIT_TYPES counts, matched whole. An emoji the author chose is theirs: it stays in the text and it counts against the subject limit, because the limit is about what they wrote. split_leading_emoji remains deliberately more permissive for parsing — this is about measuring, and the two questions want different answers.