summaryrefslogtreecommitdiffstats
path: root/CVSROOT/commitmail.pl
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-01-09 09:20:29 +0000
committerpeter <peter@FreeBSD.org>2000-01-09 09:20:29 +0000
commitc296620d565acb1a72295e78349bf7ce2f7c2d7f (patch)
treec8711035513c72e4599544dad928760c6b8d800b /CVSROOT/commitmail.pl
parent6102975409fb8db83d2bce511d571fc2d368f01c (diff)
downloadFreeBSD-ports-c296620d565acb1a72295e78349bf7ce2f7c2d7f.zip
FreeBSD-ports-c296620d565acb1a72295e78349bf7ce2f7c2d7f.tar.gz
Allow a second whitespace-delimited word on an access line to override
the email address.
Diffstat (limited to 'CVSROOT/commitmail.pl')
-rwxr-xr-xCVSROOT/commitmail.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/CVSROOT/commitmail.pl b/CVSROOT/commitmail.pl
index 8a8c5c8..923dfbf 100755
--- a/CVSROOT/commitmail.pl
+++ b/CVSROOT/commitmail.pl
@@ -14,7 +14,11 @@ while (<ACCESS>) {
if ($words[0] =~ /^[#\/;]/) {
next;
}
- push @names, $words[0];
+ if ($words[1]) {
+ push @names, $words[1];
+ } else {
+ push @names, $words[0];
+ }
}
$list = join(" ", @names);
if ($list ne '') {
OpenPOWER on IntegriCloud