public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] get_maintainer: handle file names beginning with ./
@ 2016-01-08 10:51 Dan Carpenter
  2016-01-08 11:37 ` Joe Perches
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Carpenter @ 2016-01-08 10:51 UTC (permalink / raw)
  To: Joe Perches; +Cc: linux-kernel, Andrew Morton

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) {

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-08 19:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-08 10:51 [patch] get_maintainer: handle file names beginning with ./ Dan Carpenter
2016-01-08 11:37 ` Joe Perches
2016-01-08 13:44   ` Dan Carpenter
2016-01-08 17:47     ` Joe Perches
2016-01-08 18:46       ` Dan Carpenter
2016-01-08 19:46         ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox