# HG changeset patch # User Jim Meyering # Date 1325256813 -3600 # Node ID 63675a6cbed4e7198b2e52c6e066cc08308953c4 # Parent 0b2b4b60945ff2bd882f9715bafb168dbf7c0e9d gitlog-to-changelog: remove a little duplication * build-aux/gitlog-to-changelog (main): Grep @lines once, rather than twice. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-12-30 Jim Meyering + + gitlog-to-changelog: remove a little duplication + * build-aux/gitlog-to-changelog (main): Grep @lines once, + rather than twice. + 2011-12-29 Pádraig Brady canonicalize: add support for not resolving symlinks diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog @@ -3,7 +3,7 @@ if 0; # Convert git log output to ChangeLog format. -my $VERSION = '2011-12-24 18:51'; # UTC +my $VERSION = '2011-12-30 14:31'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook @@ -253,8 +253,9 @@ my @coauthors = grep /^Co-authored-by:.*$/, @line; # Omit "Co-authored-by..." and "Signed-off-by..." lines. - @line = grep !/^Signed-off-by: .*>$/, @line; - @line = grep !/^Co-authored-by: /, @line; + @line = grep !/^(?:Signed-off-by:[ ].*>$ + |Co-authored-by:[ ] + )/x, @line; # Remove leading and trailing blank lines. if (@line)