Re: [RFC PATCH 1/2] scripts: warn about invalid MAINTAINER patterns

From: Joe Perches
Date: Tue Oct 31 2017 - 11:48:06 EST


On Tue, 2017-10-31 at 09:46 -0500, Tom Saeger wrote:
> Add get_maintainer.pl option to warn about invalid
> "F" and "X" patterns found in MAINTAINERS file(s).

Hi Tom.

I've had a similar script for many years.

This implementation is very inefficient as it runs
git ls-files once for each file pattern.

It's much more efficient to do a global git ls-files
once and store the result and then do a local grep
for pattern matches.

cheers, Joe