aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-08-22 00:56:48 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-22 13:52:47 -0400
commit31bb82c9caa9bd8fa8865fa28a7a81f67ddc0539 (patch)
tree8eb55576e12af750dce3d0166b1f3f5268cd2a0b /scripts
parent92e641784055998879942d39c74d4f84fa750968 (diff)
get_maintainer: allow usage outside of kernel tree
Add option '--no-tree' to get_maintainer.pl script to allow using this script in projects that aren't the Linux kernel if they use the same format for their MAINTAINERS file. This command is also available in checkpatch.pl, for example. Link: http://lkml.kernel.org/r/04452ac6-1575-f612-72c6-6ea88e70a9d5@arm.com Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com> 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-xscripts/get_maintainer.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index c87fa734e3e1..82a482f858ee 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -48,6 +48,7 @@ my $output_roles = 0;
48my $output_rolestats = 1; 48my $output_rolestats = 1;
49my $output_section_maxlen = 50; 49my $output_section_maxlen = 50;
50my $scm = 0; 50my $scm = 0;
51my $tree = 1;
51my $web = 0; 52my $web = 0;
52my $subsystem = 0; 53my $subsystem = 0;
53my $status = 0; 54my $status = 0;
@@ -255,6 +256,7 @@ if (!GetOptions(
255 'subsystem!' => \$subsystem, 256 'subsystem!' => \$subsystem,
256 'status!' => \$status, 257 'status!' => \$status,
257 'scm!' => \$scm, 258 'scm!' => \$scm,
259 'tree!' => \$tree,
258 'web!' => \$web, 260 'web!' => \$web,
259 'letters=s' => \$letters, 261 'letters=s' => \$letters,
260 'pattern-depth=i' => \$pattern_depth, 262 'pattern-depth=i' => \$pattern_depth,
@@ -319,7 +321,7 @@ if ($email &&
319 die "$P: Please select at least 1 email option\n"; 321 die "$P: Please select at least 1 email option\n";
320} 322}
321 323
322if (!top_of_kernel_tree($lk_path)) { 324if ($tree && !top_of_kernel_tree($lk_path)) {
323 die "$P: The current directory does not appear to be " 325 die "$P: The current directory does not appear to be "
324 . "a linux kernel source tree.\n"; 326 . "a linux kernel source tree.\n";
325} 327}
@@ -1031,13 +1033,14 @@ Other options:
1031 --sections => print all of the subsystem sections with pattern matches 1033 --sections => print all of the subsystem sections with pattern matches
1032 --letters => print all matching 'letter' types from all matching sections 1034 --letters => print all matching 'letter' types from all matching sections
1033 --mailmap => use .mailmap file (default: $email_use_mailmap) 1035 --mailmap => use .mailmap file (default: $email_use_mailmap)
1036 --no-tree => run without a kernel tree
1034 --self-test => show potential issues with MAINTAINERS file content 1037 --self-test => show potential issues with MAINTAINERS file content
1035 --version => show version 1038 --version => show version
1036 --help => show this help information 1039 --help => show this help information
1037 1040
1038Default options: 1041Default options:
1039 [--email --nogit --git-fallback --m --r --n --l --multiline --pattern-depth=0 1042 [--email --tree --nogit --git-fallback --m --r --n --l --multiline
1040 --remove-duplicates --rolestats] 1043 --pattern-depth=0 --remove-duplicates --rolestats]
1041 1044
1042Notes: 1045Notes:
1043 Using "-f directory" may give unexpected results: 1046 Using "-f directory" may give unexpected results: