Skip to content

Commit

Permalink
scripts/get_maintainer.pl: using --separator implies --nomultiline
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Sep 22, 2009
1 parent 8cbb3a7 commit 4249831
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/get_maintainer.pl
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@
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();
Expand Down Expand Up @@ -376,6 +380,7 @@ sub usage {
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:
Expand Down

0 comments on commit 4249831

Please sign in to comment.