From cd3732841de32ce5c7841e6e158df3a5f1102f86 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 7 Dec 2011 11:01:39 +0100 Subject: [PATCH] Allow comments which will not show up in the ChangeLog * scripts/gitlog-to-changelog: Ignore lines after a "--" line. -- The first line with two dashes at the start of a line (optionally followed by white space) stops copying the commit log lines to the ChangeLog entry in "make dist". This is useful to allow adding comments to the log which are not useful in a ChangeLog. --- scripts/gitlog-to-changelog | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/gitlog-to-changelog b/scripts/gitlog-to-changelog index 40a803554..a7ea1948e 100755 --- a/scripts/gitlog-to-changelog +++ b/scripts/gitlog-to-changelog @@ -281,6 +281,15 @@ sub parse_amend_file($) @line = grep !/^Signed-off-by: .*>$/, @line; @line = grep !/^Co-authored-by: /, @line; + # Remove everything after a line with 2 dashes at the beginning. + my @tmpline; + foreach (@line) + { + last if /^--\s*$/; + push @tmpline,$_; + } + @line = @tmpline; + # Remove leading and trailing blank lines. if (@line) {