From 82bd0d1dcfc5d17d1b72e12b2da3c9bb51e09a48 Mon Sep 17 00:00:00 2001
From: Don Slutz <dslutz@verizon.com>
Date: Mon, 20 Oct 2014 16:06:35 -0400
Subject: [PATCH] get_maintainer.pl: Add 'THE REST'
Signed-off-by: Don Slutz <dslutz@verizon.com>
---
MAINTAINERS | 8 ++++++++
scripts/get_maintainer.pl | 15 +++++++++++++++
2 files changed, 23 insertions(+)
@@ -1018,3 +1018,11 @@ M: Chrysostomos Nanakos <cnanakos@grnet.gr>
M: Chrysostomos Nanakos <chris@include.gr>
S: Maintained
F: block/archipelago.c
+
+THE REST
+M: Michael S. Tsirkin <mst@redhat.com>
+M: Peter Maydell <peter.maydell@linaro.org>
+L: qemu-devel@nongnu.org
+S: Supported
+F: *
+F: */
@@ -37,6 +37,7 @@ my $email_hg_since = "-365";
my $interactive = 0;
my $email_remove_duplicates = 1;
my $email_use_mailmap = 1;
+my $email_drop_the_rest_supporter_if_supporter_found = 1;
my $output_multiline = 1;
my $output_separator = ", ";
my $output_roles = 0;
@@ -196,6 +197,7 @@ if (!GetOptions(
'i|interactive!' => \$interactive,
'remove-duplicates!' => \$email_remove_duplicates,
'mailmap!' => \$email_use_mailmap,
+ 'drop_the_rest_supporter!' => \$email_drop_the_rest_supporter_if_supporter_found,
'm!' => \$email_maintainer,
'n!' => \$email_usename,
'l!' => \$email_list,
@@ -647,6 +649,19 @@ sub get_maintainers {
}
}
+ if ($email_drop_the_rest_supporter_if_supporter_found && $#email_to > 0) {
+ my @email_new;
+ my $do_replace = 0;
+ foreach my $email (@email_to) {
+ if ($email->[1] ne 'supporter:THE REST') {
+ $do_replace = 1;
+ push @email_new, $email;
+ }
+ }
+ @email_to = @email_new
+ if $do_replace;
+ }
+
foreach my $email (@email_to, @list_to) {
$email->[0] = deduplicate_email($email->[0]);
}
--
1.8.4