]> Savannah Git Hosting - gnulib.git/commitdiff
gitlog-to-changelog: trim trailing white space
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 21 Mar 2015 01:09:24 +0000 (18:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 21 Mar 2015 01:53:56 +0000 (18:53 -0700)
* 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.

ChangeLog
build-aux/gitlog-to-changelog

index ffbe0f5b3bc6881c9d9f1d1d0b203c6716b21565..e645adca3300eafbcbcabb584b4454a3fc687e3a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 747353a5c573ccfb67b2cf3d683ae8ebb0b84177..4fa4f29702af0d6364460d9da1ac4f77b4264f32 100755 (executable)
@@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
     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 @@ sub git_dir_option($)
           $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";