diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-10-27 13:17:08 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-10-31 11:38:26 +0100 |
commit | 8a5e2fa65b2f0ee8789f46f37cae288ee0507c75 (patch) | |
tree | eee6ed65a175323cdb253c97542a79af1cb3f4a5 /Porting/checkAUTHORS.pl | |
parent | a1da11a30dfa4f3543dcab00834ff535202f5085 (diff) | |
download | perl-8a5e2fa65b2f0ee8789f46f37cae288ee0507c75.tar.gz |
Remove $date from Porting/checkAUTHORS.pl, which was never used.
It was added in commit 00229b9760c33911, along with the pattern which
captured the value of 'AuthorDate:', when checkAUTHORS.pl was converted to
parsing the output of git log instead of p4 log. Neither the old nor the new
code made any use of dates, hence the variable (and the capture) were never
needed.
Diffstat (limited to 'Porting/checkAUTHORS.pl')
-rwxr-xr-x | Porting/checkAUTHORS.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Porting/checkAUTHORS.pl b/Porting/checkAUTHORS.pl index ffc3c2860d..b887508929 100755 --- a/Porting/checkAUTHORS.pl +++ b/Porting/checkAUTHORS.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -w use strict; -my ($committer, $patch, $author, $date); +my ($committer, $patch, $author); use utf8; use Getopt::Long; use Text::Wrap; @@ -94,10 +94,10 @@ sub parse_commits_from_stdin { 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); |