#!/usr/bin/perl -w
use strict;
-my ($committer, $patch, $author, $date);
+my ($committer, $patch, $author);
use utf8;
use Getopt::Long;
use Text::Wrap;
for (@lines) {
next if m/^$/;
next if m/^(\S*?)^Merge:/ism; # skip merge commits
- if (m/^(.*?)^Author:\s*(.*?)^AuthorDate:\s*(.*?)^Commit:\s*(.*?)^(.*)$/gism) {
+ if (m/^(.*?)^Author:\s*(.*?)^AuthorDate:\s*.*?^Commit:\s*(.*?)^(.*)$/gism) {
# new patch
- ( $patch, $author, $date, $committer ) = ( $1, $2, $3, $4 );
+ ( $patch, $author, $committer ) = ( $1, $2, $3 );
chomp($author);
unless ($author) { die $_ }
chomp($committer);