get_maintainer: Prepare for separate MAINTAINERS files
authorJoe Perches <joe@perches.com>
Sat, 5 Aug 2017 04:45:48 +0000 (21:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Aug 2017 18:09:31 +0000 (11:09 -0700)
commit6f7d98ec445b61f8f416fedfe607cb4f1653a8bc
treea6bb1d1213b12d3fe9f00c1d693a7ce7c86f85a4
parent6209ef67883ae6407cceb557b9ec4b2117d91697
get_maintainer: Prepare for separate MAINTAINERS files

Allow for MAINTAINERS to become a directory and if it is,
read all the files in the directory for maintained sections.

Optionally look for all files named MAINTAINERS in directories
excluding the .git directory by using --find-maintainer-files.

This optional feature adds ~.3 seconds of CPU on an Intel
i5-6200 with an SSD.

Miscellanea:

 - Create a read_maintainer_file subroutine from the existing code
 - Test only the existence of MAINTAINERS, not whether it's a file

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/get_maintainer.pl