diff options
author | Werner Koch <[email protected]> | 2011-12-07 10:01:39 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-12-07 10:02:13 +0000 |
commit | cd3732841de32ce5c7841e6e158df3a5f1102f86 (patch) | |
tree | 94ba20458c785aba98ee68a15aa6df82722c0246 | |
parent | gpgsm: Allow specification of an AuthorityKeyIdentifier. (diff) | |
download | gnupg-cd3732841de32ce5c7841e6e158df3a5f1102f86.tar.gz gnupg-cd3732841de32ce5c7841e6e158df3a5f1102f86.zip |
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.
Diffstat (limited to '')
-rwxr-xr-x | scripts/gitlog-to-changelog | 9 |
1 files changed, 9 insertions, 0 deletions
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) { |