scripts/get_maintainer.pl: add --remove-duplicates

Allow control over the elimination of duplicate email names and addresses

--remove-duplicates will use the first email name or address presented
--noremove-duplicates will emit all names and addresses

--remove-duplicates is enabled by default

For instance:

$ ./scripts/get_maintainer.pl -f drivers/char/tty_ioctl.c
Greg Kroah-Hartman <[email protected]>
Alan Cox <[email protected]>
Mike Frysinger <[email protected]>
Alexey Dobriyan <[email protected]>
[email protected]

$ ./scripts/get_maintainer.pl -f --noremove-duplicates drivers/char/tty_ioctl.c
Greg Kroah-Hartman <[email protected]>
Alan Cox <[email protected]>
Alan Cox <[email protected]>
Alan Cox <[email protected]>
Mike Frysinger <[email protected]>
Alexey Dobriyan <[email protected]>
[email protected]

Using --remove-duplicates could eliminate multiple maintainers that
share the same name but not the same email address.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
1 file changed