diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-02-21 19:43:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:21 -0500 |
commit | 6be0710cfe7325be72c72cde702318b983b450a9 (patch) | |
tree | 4cf4c3fb37b61d11b12fe2154f9c97f075f7a86a /scripts | |
parent | 36d308d8b547ee19d3fa7399858e5a1632413d0e (diff) |
get_maintainer.pl: find maintainers for removed files
For removed files, get_maintainer.pl doesn't find any maintainers (besides
the default linux-kernel@vger.kernel.org), as it only looks at the "+++"
lines, which are "/dev/null" for removals. Fix this by extending the
parsing to the "---" lines.
E.g. for the two line test patch below the real score maintainers will now
be found:
--- a/arch/score/include/asm/dma-mapping.h
+++ /dev/null
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/get_maintainer.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 8b673dd4627f..18d4ab55606b 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl | |||
@@ -433,7 +433,7 @@ foreach my $file (@ARGV) { | |||
433 | 433 | ||
434 | while (<$patch>) { | 434 | while (<$patch>) { |
435 | my $patch_line = $_; | 435 | my $patch_line = $_; |
436 | if (m/^\+\+\+\s+(\S+)/) { | 436 | if (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) { |
437 | my $filename = $1; | 437 | my $filename = $1; |
438 | $filename =~ s@^[^/]*/@@; | 438 | $filename =~ s@^[^/]*/@@; |
439 | $filename =~ s@\n@@; | 439 | $filename =~ s@\n@@; |