Re: [RFC] scripts/get_maintainer: add emails based on keywords in the patch

2009-10-10 Thread Wolfram Sang
Perhaps it's better to use the existing MAINTAINERS file and extend it with a new K: for keyword entry. Yeah, makes sense to have everything in one file. + K: Keyword perl regex pattern to match content in patch +All patterns are surrounded by \b +for instance: K:

[RFC] scripts/get_maintainer: add emails based on keywords in the patch

2009-10-09 Thread Wolfram Sang
Make get_maintainer.pl scan the modifying lines of a patch for a list of keywords and add an associated email if found. The first user is the devicetree-discuss mailing list which should always be cc'ed if a device tree property is inserted/removed (keyword 'of_get_property'). This patch is the

Re: [RFC] scripts/get_maintainer: add emails based on keywords in the patch

2009-10-09 Thread Joe Perches
On Fri, 2009-10-09 at 12:32 +0200, Wolfram Sang wrote: +my %keywords_to_mail = ( + 'of_get_property' = 'L: devicetree-disc...@lists.ozlabs.org', maybe: '\bof_get_property\b' + # Check the lines which a patch modifies for keywords; add mail if found. + } elsif

Re: [RFC] scripts/get_maintainer: add emails based on keywords in the patch

2009-10-09 Thread Grant Likely
On Fri, Oct 9, 2009 at 4:32 AM, Wolfram Sang w.s...@pengutronix.de wrote: Make get_maintainer.pl scan the modifying lines of a patch for a list of keywords and add an associated email if found. The first user is the devicetree-discuss mailing list which should always be cc'ed if a device tree

Re: [RFC] scripts/get_maintainer: add emails based on keywords in the patch

2009-10-09 Thread Joe Perches
On Fri, 2009-10-09 at 04:23 -0700, Joe Perches wrote: If this facility is desired by many others, it might be better to have a separate file of 'regex generates email' read at initialization. Perhaps it's better to use the existing MAINTAINERS file and extend it with a new K: for keyword