]> Savannah Git Hosting - gnulib.git/commitdiff
gitlog-to-changelog: trim only trailing whitespaces
authorPavel Raiskup <praiskup@redhat.com>
Thu, 24 Sep 2015 15:17:38 +0000 (17:17 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Sep 2015 15:45:25 +0000 (08:45 -0700)
This is fix for --format regression introduced by commit
2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
doubled %n string) had no effect anymore.  This format
specification has been used e.g. by GNU paxuitils (commit
edfd8bcc3).

* build-aux/gitlog-to-changelog (main): Stop squashing multiple
newlines in commmit messages.

ChangeLog
build-aux/gitlog-to-changelog

index 7eca2c4bdcd4360c791af98b891d104fb5f75327..81a532692daad925cdfc9bf7ce158c7d51382a99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
+
+       gitlog-to-changelog: trim only trailing whitespaces
+       This is fix for --format regression introduced by commit
+       2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
+       doubled %n string) had no effect anymore.  This format
+       specification has been used e.g. by GNU paxuitils (commit
+       edfd8bcc3).
+
+       * build-aux/gitlog-to-changelog (main): Stop squashing multiple
+       newlines in commmit messages.
+
 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
 
        Test that c_iscntrl agrees with iscntrl, etc.
index 0cab1bf17cdb93f4351a5a41219ff24af157047b..a0e0a05df8f1194dcc47012e58b26ab11cae3c57 100755 (executable)
@@ -333,7 +333,7 @@ sub git_dir_option($)
           $rest =~ s/^\s*\(cherry picked from commit [\da-f]+\)\n//m;
         }
 
-      my @line = split /\s*\n/, $rest;
+      my @line = split /[ \t]*\n/, $rest;
       my $author_line = shift @line;
       defined $author_line
         or die "$ME:$.: unexpected EOF\n";