debian_analyzer::debcommit

Function strip_changelog_message

Source
pub fn strip_changelog_message(changes: &[&str]) -> Vec<String>
Expand description

Strip a changelog message like debcommit does.

Takes a list of changes from a changelog entry and applies a transformation so the message is well formatted for a commit message.

§Arguments

  • changes - a list of lines from the changelog entry

§Returns

another list of lines with blank lines stripped from the start and the spaces the start of the lines split if there is only one logical entry.