mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
get_maintainers.pl: Avoid THE_REST when files are added or removed
When files are added or removed /dev/null is used as a place holder name in the patch for the absent file. Don't try and find a MAINTAINER for this place holder, it only ever flags and then spams THE REST, behaviour for a real filename is unchanged. Signed-off-by: Alan Robinson <Alan.Robinson@ts.fujitsu.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
f735cf5521
commit
140ddf18a6
1 file changed
+6
-4
@@ -444,10 +444,12 @@ foreach my $file (@ARGV) {
|
|||||||
my $patch_line = $_;
|
my $patch_line = $_;
|
||||||
if (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) {
|
if (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) {
|
||||||
my $filename = $1;
|
my $filename = $1;
|
||||||
$filename =~ s@^[^/]*/@@;
|
if ($1 ne "/dev/null") { #Ignore the no-file placeholder
|
||||||
$filename =~ s@\n@@;
|
$filename =~ s@^[^/]*/@@;
|
||||||
$lastfile = $filename;
|
$filename =~ s@\n@@;
|
||||||
push(@files, $filename);
|
$lastfile = $filename;
|
||||||
|
push(@files, $filename);
|
||||||
|
}
|
||||||
$patch_prefix = "^[+-].*"; #Now parsing the actual patch
|
$patch_prefix = "^[+-].*"; #Now parsing the actual patch
|
||||||
} elsif (m/^\@\@ -(\d+),(\d+)/) {
|
} elsif (m/^\@\@ -(\d+),(\d+)/) {
|
||||||
if ($email_git_blame) {
|
if ($email_git_blame) {
|
||||||
|
|||||||