summaryrefslogtreecommitdiff
path: root/build-aux/gitlog-to-changelog
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-03-20 18:09:24 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-03-20 18:53:56 -0700
commit2b93079a5d1baa4d6ce9c90ef92cb0b98faabff2 (patch)
tree125fd37961dab0fc462079b90d978c4b217baa94 /build-aux/gitlog-to-changelog
parent84f5241b99ffcb8672997a2cef5e65616121bcf4 (diff)
downloadgnulib-2b93079a5d1baa4d6ce9c90ef92cb0b98faabff2.tar.gz
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.
Diffstat (limited to 'build-aux/gitlog-to-changelog')
-rwxr-xr-xbuild-aux/gitlog-to-changelog4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog
index 747353a5c5..4fa4f29702 100755
--- a/build-aux/gitlog-to-changelog
+++ b/build-aux/gitlog-to-changelog
@@ -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";