scripts/get_maintainer.pl: using --separator implies --nomultiline

If a person sets a separator, it's only used if --nomultiline is set.
Don't make the command line also include --nomultiline in that case.

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>
This commit is contained in:
Joe Perches 2009-09-21 17:04:21 -07:00 committed by Linus Torvalds
parent 8cbb3a77e1
commit 4249831613
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,10 @@ if ($#ARGV < 0) {
die "$P: argument missing: patchfile or -f file please\n";
}
if ($output_separator ne ", ") {
$output_multiline = 0;
}
my $selections = $email + $scm + $status + $subsystem + $web;
if ($selections == 0) {
usage();
@ -376,6 +380,7 @@ MAINTAINER field selection options:
Output type options:
--separator [, ] => separator for multiple entries on 1 line
using --separator also sets --nomultiline if --separator is not [, ]
--multiline => print 1 entry per line
Other options: