This patch imports the Linux kernel's "get_maintainer.pl" script for use with OE/Yocto layers. The purpose of this script is to make it easy for people submitting patches to determine a sensible list of people to CC. Ideally all layers include valid MAINTAINERS files, in which case a valid MAINTAINERS file will be parsed for a list of potential people to include. But even if such a file does not exist, the "get_maintainer.pl" script is able to use the git history to create a sensilble list of relevant people who might be interested in changes to parts of various files a given patch touches.
Invoke this script with "-h" or "--help" to get a detailed description of the various things this script can do. This script was modified in a couple minor ways to fit in with the OE/Yocto ecosystem. For example, the original script assumes the presence of a MAINTAINERS file; unfortunately not all layers (very few, in fact) include such a file. Also, it is not possible to assume all layers include a known file at a given location (i.e. to make sure the script is invoked from a valid OE/Yocto layer). For example most layers include a "conf/layer.conf" file, but some "layers" (such as openembedded-core) are containers for further sub-layers. Therefore this "location checking" logic had to be left out. If you would like to automate the processes of adding relevant CC's to your "git email"'s, simply add a "cccmd = get_maintainer.pl" line to your ".gitconfig" file and the CC's will be added to your emails automatically. Trevor Woerner (1): scripts: add get_maintainer script scripts/get_maintainer.pl | 2140 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2140 insertions(+) create mode 100755 scripts/get_maintainer.pl -- 1.8.5.2.227.g53f3478 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core