Re: [PATCH] scripts: helper for mailing patches from git to the maintainers

From: Joe Perches
Date: Thu Jun 27 2019 - 11:43:48 EST


On Thu, 2019-06-27 at 16:59 +0200, Enrico Weigelt, metux IT consult
wrote:
> This is a little helper script for mailing patches out of a git
> branch to the corresponding maintainers.
>
> Essentially, it scans the touched files, asks get_maintainer.pl
> for their maintainers and calls git-send-email for mailing out
> the patches.
[]
> +get_maintainers() {
> + $KERNELSRC/scripts/get_maintainer.pl --m --l --remove-duplicates `get_files` |

--noroles --norolestats

It's also useful to separate the --to and --cc lines
where the --to goes only to direct maintainers and
--cc goes to others.

> + grep -v "$LKML" | \
> + grep -E "(maintainer|reviewer|open list)" | \
> + grep -o '[[:alnum:]+\.\_\-]*@[[:alnum:]+\.\_\-]*'