strip_for_commit_message

Function strip_for_commit_message 

Source
pub fn strip_for_commit_message(changes: Vec<&str>) -> Vec<&str>
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.