Re: [BUG]: get-maintainers unable to respect parenthesis in subsystem name

From: Joe Perches
Date: Mon Feb 15 2016 - 03:31:04 EST


On Mon, 2016-02-15 at 13:48 +0530, Viresh Kumar wrote:
> On 14-02-16, 23:36, Joe Perches wrote:
> > On Mon, 2016-02-15 at 12:07 +0530, Viresh Kumar wrote:
> > > On 14-02-16, 21:42, Joe Perches wrote:
> > > > Not what I get with current -next:
> > > >
> > > > $ ./scripts/get_maintainer.pl -f Documentation/power/opp.txt 
> > > > Viresh Kumar <vireshk@xxxxxxxxxx> (maintainer:OPERATING
> > > > PERFORMANCE POINTS (OPP))
> > > > Nishanth Menon <nm@xxxxxx> (maintainer:OPERATING PERFORMANCE
> > > > POINTS (OPP))
> > > > Stephen Boyd <sboyd@xxxxxxxxxxxxxx> (maintainer:OPERATING
> > > > PERFORMANCE POINTS (OPP))
> > > > "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx> (supporter:SUSPEND TO
> > > > RAM)
> > > > Len Brown <len.brown@xxxxxxxxx> (supporter:SUSPEND TO RAM)
> > > > Pavel Machek <pavel@xxxxxx> (supporter:SUSPEND TO RAM)
> > > > linux-pm@xxxxxxxxxxxxxxx (open list:OPERATING PERFORMANCE
> > > > POINTS (OPP))
> > > > linux-kernel@xxxxxxxxxxxxxxx (open list)
> > >
> > > Okay, its not get-maintainers, but cc-cmd that is screwing it up.
> > >
> > > I have tested it again with following in my .gitconfig:
> > >
> > > [sendemail]
> > >         cccmd = scripts/get_maintainers~/scripts/cccmd
> > >
> >
> > Then you should most likely fix your cccmd script.
>
> Sorry for bad copy-paste, it looks like this instead:
>
> [sendemail]
>         cccmd = scripts/get_maintainers
>
> So, its some issue with git I suppose. I will try logging a ticket
> there.

git send-email requires a simple list of names and addresses
without decorations like roles, commit stats or section names.

You are supposed to use something like:

tocmd = "scripts/get_maintainer.pl --nogit --nogit-fallback --norolestats --pattern-depth=1 --nol"
cccmd = "scripts/get_maintainer.pl --nogit --nogit-fallback --norolestats --nom --nor"