scripts/get_maintainer.pl: add maintainers in order listed in matched section
authorJoe Perches <joe@perches.com>
Tue, 22 Sep 2009 00:04:24 +0000 (17:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:46 +0000 (07:17 -0700)
commitb781655a6f6d15bdcc96f2cc1d56b0658f9cf0b4
treeb2b2b1f0cc825333160b929aa48546b587cc4ace
parent11ecf53c97863a0609db3816d82f1d0ddf3d2bc2
scripts/get_maintainer.pl: add maintainers in order listed in matched section

Previous behavior was "bottom-up" in each section from the pattern "F:"
entry that matched.  Now information is entered into the various lists in
the "as entered" order for each matched section.

This also allows the F: entry to be put anywhere in a section, not just as
the last entries in the section.

And a couple of improvements:

Don't alphabetically sort before outputting the matched scm, status,
subsystem and web sections.

Ignore content after a single email address so these entries are acceptable
M: name <address> whatever other comment

And a fix:

Make an M: entry without a name again use the name from an immediately
preceding P: line if it exists.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/get_maintainer.pl