]> Git Repo - linux.git/commitdiff
get_maintainer.pl: find maintainers for removed files
authorGeert Uytterhoeven <[email protected]>
Fri, 22 Feb 2013 00:43:12 +0000 (16:43 -0800)
committerLinus Torvalds <[email protected]>
Fri, 22 Feb 2013 01:22:21 +0000 (17:22 -0800)
For removed files, get_maintainer.pl doesn't find any maintainers (besides
the default [email protected]), 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 <[email protected]>
Cc: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/get_maintainer.pl

index 8b673dd4627fb20f4ab16a8af6de9524bd84a426..18d4ab55606bcb1ee41d2b7d0cb32afbf06163d9 100755 (executable)
@@ -433,7 +433,7 @@ foreach my $file (@ARGV) {
 
        while (<$patch>) {
            my $patch_line = $_;
-           if (m/^\+\+\+\s+(\S+)/) {
+           if (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) {
                my $filename = $1;
                $filename =~ s@^[^/]*/@@;
                $filename =~ s@\n@@;
This page took 0.055899 seconds and 4 git commands to generate.