Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1304368

[patch] get_maintainer: handle file names beginning with ./

From Dan Carpenter <dan.carpenter@oracle.com>
Newsgroups linux.kernel
Subject [patch] get_maintainer: handle file names beginning with ./
Date 2016-01-08 12:00 +0100
Message-ID <qOCVX-5yb-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The problem is that get_maintainer.pl doesn't work if you have a ./
prefix on the filename.  For example, if you type:

    ./scripts/get_maintainer.pl -f ./drivers/usb/usb-skeleton.c

then the current code only includes LKML and people from the git log, it
doesn't include Greg or the linux-usb list.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index cab641a..41cfe59 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -605,6 +605,8 @@ sub get_maintainers {
 
     foreach my $file (@files) {
 
+	$file =~ s/^\.\///;
+
 	my %hash;
 	my $tvi = find_first_section();
 	while ($tvi < @typevalue) {

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[patch] get_maintainer: handle file names beginning with ./ Dan Carpenter <dan.carpenter@oracle.com> - 2016-01-08 12:00 +0100
  Re: [patch] get_maintainer: handle file names beginning with ./ Joe Perches <joe@perches.com> - 2016-01-08 12:40 +0100
    Re: [patch] get_maintainer: handle file names beginning with ./ Dan Carpenter <dan.carpenter@oracle.com> - 2016-01-08 14:50 +0100
      Re: [patch] get_maintainer: handle file names beginning with ./ Joe Perches <joe@perches.com> - 2016-01-08 18:50 +0100
        Re: [patch] get_maintainer: handle file names beginning with ./ Dan Carpenter <dan.carpenter@oracle.com> - 2016-01-08 19:50 +0100
          Re: [patch] get_maintainer: handle file names beginning with ./ Joe Perches <joe@perches.com> - 2016-01-08 20:50 +0100

csiph-web