changeset 17946:8017f51b6280

gitlog-to-changelog: trim trailing white space * build-aux/gitlog-to-changelog (main): Trim trailing white space from commit message lines. This is helpful for processing the GNU Emacs repository, which dates back to 1985 and contains a lot of such lines.
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 20 Mar 2015 18:09:24 -0700
parents 00c7e00808f7
children 101ada775ae6
files ChangeLog build-aux/gitlog-to-changelog
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Mar 20 17:40:37 2015 -0700
+++ b/ChangeLog	Fri Mar 20 18:09:24 2015 -0700
@@ -1,5 +1,11 @@
 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
 
+	gitlog-to-changelog: trim trailing white space
+	* build-aux/gitlog-to-changelog (main):
+	Trim trailing white space from commit message lines.
+	This is helpful for processing the GNU Emacs repository,
+	which dates back to 1985 and contains a lot of such lines.
+
 	gitlog-to-changelog: new option --ignore-matching
 	* build-aux/gitlog-to-changelog (usage, git_dir_option, main):
 	Support new option --ignore-matching=PAT, which ignores all
--- a/build-aux/gitlog-to-changelog	Fri Mar 20 17:40:37 2015 -0700
+++ b/build-aux/gitlog-to-changelog	Fri Mar 20 18:09:24 2015 -0700
@@ -3,7 +3,7 @@
     if 0;
 # Convert git log output to ChangeLog format.
 
-my $VERSION = '2015-03-20 22:09'; # UTC
+my $VERSION = '2015-03-21 01:01'; # 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
@@ -314,7 +314,7 @@
           $rest =~ s/^\s*\(cherry picked from commit [\da-f]+\)\n//m;
         }
 
-      my @line = split "\n", $rest;
+      my @line = split /\s*\n/, $rest;
       my $author_line = shift @line;
       defined $author_line
         or die "$ME:$.: unexpected EOF\n";