The patch titled Subject: get_maintainer: allow option --mpath <directory> to read all files in <directory> has been added to the -mm tree. Its filename is get_maintainer-allow-option-mpath-directory-to-read-all-files-in-directory.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/get_maintainer-allow-option-mpath-directory-to-read-all-files-in-directory.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/get_maintainer-allow-option-mpath-directory-to-read-all-files-in-directory.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Joe Perches <joe@xxxxxxxxxxx> Subject: get_maintainer: allow option --mpath <directory> to read all files in <directory> There is an external use case for multiple private MAINTAINER style files in a separate directory. Allow it. --mpath has a default of "./MAINTAINERS". The value entered can be either a file or a directory. The behaviors are now: --mpath <file> Read only the specific file as <MAINTAINER_TYPE> file --mpath <directory> Read all files in <directory> as <MAINTAINER_TYPE> files --mpath <directory> --find-maintainer-files Recurse through <directory> and read all files named MAINTAINERS Link: http://lkml.kernel.org/r/991b2f20112d53863cd79e61d908f1d26d3e1971.camel@xxxxxxxxxxx Signed-off-by: Joe Perches <joe@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/get_maintainer.pl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) --- a/scripts/get_maintainer.pl~get_maintainer-allow-option-mpath-directory-to-read-all-files-in-directory +++ a/scripts/get_maintainer.pl @@ -396,7 +396,12 @@ sub read_all_maintainer_files { if (-d $path) { $path .= '/' if ($path !~ m@/$@); - if ($path eq "${lk_path}MAINTAINERS/") { + if ($find_maintainer_files) { + find( { wanted => \&find_is_maintainer_file, + preprocess => \&find_ignore_git, + no_chdir => 1, + }, "$path"); + } else { opendir(DIR, "$path") or die $!; my @files = readdir(DIR); closedir(DIR); @@ -404,12 +409,6 @@ sub read_all_maintainer_files { push(@mfiles, "$path$file") if ($file !~ /^\./); } } - if ($find_maintainer_files) { - find( { wanted => \&find_is_maintainer_file, - preprocess => \&find_ignore_git, - no_chdir => 1, - }, "$path"); - } } elsif (-f "$path") { push(@mfiles, "$path"); } else { _ Patches currently in -mm which might be from joe@xxxxxxxxxxx are spdxcheck-work-with-current-head-licenses-directory.patch get_maintainerpl-add-mpath=path-or-file-for-maintainers-file-location.patch get_maintainer-allow-option-mpath-directory-to-read-all-files-in-directory.patch checkpatch-add-a-strict-test-for-structs-with-bool-member-definitions.patch checkpatch-add-fix-for-concatenated_string-and-string_fragments.patch checkpatch-improve-runtime-execution-speed-a-little.patch checkpatch-fix-macro-argument-reuse-test.patch checkpatch-validate-spdx-license-with-spdxcheckpy.patch checkpatch-fix-krealloc-reuse-test.patch checkpatch-check-for-functions-with-passed-by-value-structs-or-unions.patch checkpatch-warn-when-a-patch-doesnt-have-a-description.patch checkpatch-fix-spdx-license-check-with-root=path.patch checkpatch-warn-on-unnecessary-int-declarations.patch