* [PATCH 1/2] get_maintainer: add --no-foo options to --help @ 2015-08-19 22:09 Brian Norris 2015-08-19 22:09 ` [PATCH 2/2] get_maintainer: add missing documentation for --[no]git-blame-signatures Brian Norris 2015-10-14 17:10 ` [PATCH 1/2] get_maintainer: add --no-foo options to --help Brian Norris 0 siblings, 2 replies; 6+ messages in thread From: Brian Norris @ 2015-08-19 22:09 UTC (permalink / raw) To: Joe Perches; +Cc: Brian Norris, linux-kernel Many flag options are boolean and support both a positive and a negative invocation from the command line. Some of these are even mentioned by example (e.g., --nogit is mentioned as a default option), but they aren't explicitly mentioned in the list of options. It happens that some of these are pretty important, as they are default-on, and to turn them off, you have to know about the --no-foo version. Anyway, let's document them now. Signed-off-by: Brian Norris <computersforpeace@gmail.com> --- scripts/get_maintainer.pl | 48 +++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 98bae869f6d0..04ae47a8a5bd 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -771,43 +771,43 @@ usage: $P [options] patchfile version: $V MAINTAINER field selection options: - --email => print email address(es) if any - --git => include recent git \*-by: signers - --git-all-signature-types => include signers regardless of signature type + --[no]email => print email address(es) if any + --[no]git => include recent git \*-by: signers + --[no]git-all-signature-types => include signers regardless of signature type or use only ${signature_pattern} signers (default: $email_git_all_signature_types) - --git-fallback => use git when no exact MAINTAINERS pattern (default: $email_git_fallback) - --git-chief-penguins => include ${penguin_chiefs} + --[no]git-fallback => use git when no exact MAINTAINERS pattern (default: $email_git_fallback) + --[no]git-chief-penguins => include ${penguin_chiefs} --git-min-signatures => number of signatures required (default: $email_git_min_signatures) --git-max-maintainers => maximum maintainers to add (default: $email_git_max_maintainers) --git-min-percent => minimum percentage of commits required (default: $email_git_min_percent) - --git-blame => use git blame to find modified commits for patch or file + --[no]git-blame => use git blame to find modified commits for patch or file --git-since => git history to use (default: $email_git_since) --hg-since => hg history to use (default: $email_hg_since) - --interactive => display a menu (mostly useful if used with the --git option) - --m => include maintainer(s) if any - --r => include reviewer(s) if any - --n => include name 'Full Name <addr\@domain.tld>' - --l => include list(s) if any - --s => include subscriber only list(s) if any - --remove-duplicates => minimize duplicate email names/addresses - --roles => show roles (status:subsystem, git-signer, list, etc...) - --rolestats => show roles and statistics (commits/total_commits, %) - --file-emails => add email addresses found in -f file (default: 0 (off)) - --scm => print SCM tree(s) if any - --status => print status if any - --subsystem => print subsystem name if any - --web => print website(s) if any + --[no]interactive => display a menu (mostly useful if used with the --git option) + --[no]m => include maintainer(s) if any + --[no]r => include reviewer(s) if any + --[no]n => include name 'Full Name <addr\@domain.tld>' + --[no]l => include list(s) if any + --[no]s => include subscriber only list(s) if any + --[no]remove-duplicates => minimize duplicate email names/addresses + --[no]roles => show roles (status:subsystem, git-signer, list, etc...) + --[no]rolestats => show roles and statistics (commits/total_commits, %) + --[no]file-emails => add email addresses found in -f file (default: 0 (off)) + --[no]scm => print SCM tree(s) if any + --[no]status => print status if any + --[no]subsystem => print subsystem name if any + --[no]web => print website(s) if any 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 + --[no]multiline => print 1 entry per line Other options: --pattern-depth => Number of pattern directory traversals (default: 0 (all)) - --keywords => scan patch for keywords (default: $keywords) - --sections => print all of the subsystem sections with pattern matches - --mailmap => use .mailmap file (default: $email_use_mailmap) + --[no]keywords => scan patch for keywords (default: $keywords) + --[no]sections => print all of the subsystem sections with pattern matches + --[no]mailmap => use .mailmap file (default: $email_use_mailmap) --version => show version --help => show this help information -- 2.5.0.276.gf5e568e ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] get_maintainer: add missing documentation for --[no]git-blame-signatures 2015-08-19 22:09 [PATCH 1/2] get_maintainer: add --no-foo options to --help Brian Norris @ 2015-08-19 22:09 ` Brian Norris 2015-10-14 17:10 ` [PATCH 1/2] get_maintainer: add --no-foo options to --help Brian Norris 1 sibling, 0 replies; 6+ messages in thread From: Brian Norris @ 2015-08-19 22:09 UTC (permalink / raw) To: Joe Perches; +Cc: Brian Norris, linux-kernel I really haven't used this option much myself, so feel free to improve on the documentation for it. Signed-off-by: Brian Norris <computersforpeace@gmail.com> --- scripts/get_maintainer.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 04ae47a8a5bd..a57b4d462360 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -781,6 +781,7 @@ MAINTAINER field selection options: --git-max-maintainers => maximum maintainers to add (default: $email_git_max_maintainers) --git-min-percent => minimum percentage of commits required (default: $email_git_min_percent) --[no]git-blame => use git blame to find modified commits for patch or file + --[no]git-blame-signatures => like --git-blame, but include all commit signers --git-since => git history to use (default: $email_git_since) --hg-since => hg history to use (default: $email_hg_since) --[no]interactive => display a menu (mostly useful if used with the --git option) -- 2.5.0.276.gf5e568e ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] get_maintainer: add --no-foo options to --help 2015-08-19 22:09 [PATCH 1/2] get_maintainer: add --no-foo options to --help Brian Norris 2015-08-19 22:09 ` [PATCH 2/2] get_maintainer: add missing documentation for --[no]git-blame-signatures Brian Norris @ 2015-10-14 17:10 ` Brian Norris 2015-10-14 17:15 ` Joe Perches 1 sibling, 1 reply; 6+ messages in thread From: Brian Norris @ 2015-10-14 17:10 UTC (permalink / raw) To: Joe Perches; +Cc: linux-kernel Ping? Should I resend? On Wed, Aug 19, 2015 at 03:09:39PM -0700, Brian Norris wrote: > Many flag options are boolean and support both a positive and a negative > invocation from the command line. Some of these are even mentioned by > example (e.g., --nogit is mentioned as a default option), but they > aren't explicitly mentioned in the list of options. It happens that some > of these are pretty important, as they are default-on, and to turn them > off, you have to know about the --no-foo version. > > Anyway, let's document them now. > > Signed-off-by: Brian Norris <computersforpeace@gmail.com> > --- > scripts/get_maintainer.pl | 48 +++++++++++++++++++++++------------------------ > 1 file changed, 24 insertions(+), 24 deletions(-) > > diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl > index 98bae869f6d0..04ae47a8a5bd 100755 > --- a/scripts/get_maintainer.pl > +++ b/scripts/get_maintainer.pl > @@ -771,43 +771,43 @@ usage: $P [options] patchfile > version: $V > > MAINTAINER field selection options: > - --email => print email address(es) if any > - --git => include recent git \*-by: signers > - --git-all-signature-types => include signers regardless of signature type > + --[no]email => print email address(es) if any > + --[no]git => include recent git \*-by: signers > + --[no]git-all-signature-types => include signers regardless of signature type > or use only ${signature_pattern} signers (default: $email_git_all_signature_types) > - --git-fallback => use git when no exact MAINTAINERS pattern (default: $email_git_fallback) > - --git-chief-penguins => include ${penguin_chiefs} > + --[no]git-fallback => use git when no exact MAINTAINERS pattern (default: $email_git_fallback) > + --[no]git-chief-penguins => include ${penguin_chiefs} > --git-min-signatures => number of signatures required (default: $email_git_min_signatures) > --git-max-maintainers => maximum maintainers to add (default: $email_git_max_maintainers) > --git-min-percent => minimum percentage of commits required (default: $email_git_min_percent) > - --git-blame => use git blame to find modified commits for patch or file > + --[no]git-blame => use git blame to find modified commits for patch or file > --git-since => git history to use (default: $email_git_since) > --hg-since => hg history to use (default: $email_hg_since) > - --interactive => display a menu (mostly useful if used with the --git option) > - --m => include maintainer(s) if any > - --r => include reviewer(s) if any > - --n => include name 'Full Name <addr\@domain.tld>' > - --l => include list(s) if any > - --s => include subscriber only list(s) if any > - --remove-duplicates => minimize duplicate email names/addresses > - --roles => show roles (status:subsystem, git-signer, list, etc...) > - --rolestats => show roles and statistics (commits/total_commits, %) > - --file-emails => add email addresses found in -f file (default: 0 (off)) > - --scm => print SCM tree(s) if any > - --status => print status if any > - --subsystem => print subsystem name if any > - --web => print website(s) if any > + --[no]interactive => display a menu (mostly useful if used with the --git option) > + --[no]m => include maintainer(s) if any > + --[no]r => include reviewer(s) if any > + --[no]n => include name 'Full Name <addr\@domain.tld>' > + --[no]l => include list(s) if any > + --[no]s => include subscriber only list(s) if any > + --[no]remove-duplicates => minimize duplicate email names/addresses > + --[no]roles => show roles (status:subsystem, git-signer, list, etc...) > + --[no]rolestats => show roles and statistics (commits/total_commits, %) > + --[no]file-emails => add email addresses found in -f file (default: 0 (off)) > + --[no]scm => print SCM tree(s) if any > + --[no]status => print status if any > + --[no]subsystem => print subsystem name if any > + --[no]web => print website(s) if any > > 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 > + --[no]multiline => print 1 entry per line > > Other options: > --pattern-depth => Number of pattern directory traversals (default: 0 (all)) > - --keywords => scan patch for keywords (default: $keywords) > - --sections => print all of the subsystem sections with pattern matches > - --mailmap => use .mailmap file (default: $email_use_mailmap) > + --[no]keywords => scan patch for keywords (default: $keywords) > + --[no]sections => print all of the subsystem sections with pattern matches > + --[no]mailmap => use .mailmap file (default: $email_use_mailmap) > --version => show version > --help => show this help information > > -- > 2.5.0.276.gf5e568e > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] get_maintainer: add --no-foo options to --help 2015-10-14 17:10 ` [PATCH 1/2] get_maintainer: add --no-foo options to --help Brian Norris @ 2015-10-14 17:15 ` Joe Perches 2015-10-14 17:33 ` Brian Norris 0 siblings, 1 reply; 6+ messages in thread From: Joe Perches @ 2015-10-14 17:15 UTC (permalink / raw) To: Brian Norris; +Cc: linux-kernel On Wed, 2015-10-14 at 10:10 -0700, Brian Norris wrote: > Ping? Should I resend? I don't have a strong opinion about this. It seems the [no] blocks make the generic options more difficult to read. If you do resend, please cc "Andrew Morton <akpm@linux-foundation.org>" > On Wed, Aug 19, 2015 at 03:09:39PM -0700, Brian Norris wrote: > > Many flag options are boolean and support both a positive and a negative > > invocation from the command line. Some of these are even mentioned by > > example (e.g., --nogit is mentioned as a default option), but they > > aren't explicitly mentioned in the list of options. It happens that some > > of these are pretty important, as they are default-on, and to turn them > > off, you have to know about the --no-foo version. > > > > Anyway, let's document them now. > > > > Signed-off-by: Brian Norris <computersforpeace@gmail.com> > > --- > > scripts/get_maintainer.pl | 48 +++++++++++++++++++++++------------------------ > > 1 file changed, 24 insertions(+), 24 deletions(-) > > > > diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl > > index 98bae869f6d0..04ae47a8a5bd 100755 > > --- a/scripts/get_maintainer.pl > > +++ b/scripts/get_maintainer.pl > > @@ -771,43 +771,43 @@ usage: $P [options] patchfile > > version: $V > > > > MAINTAINER field selection options: > > - --email => print email address(es) if any > > - --git => include recent git \*-by: signers > > - --git-all-signature-types => include signers regardless of signature type > > + --[no]email => print email address(es) if any > > + --[no]git => include recent git \*-by: signers > > + --[no]git-all-signature-types => include signers regardless of signature type > > or use only ${signature_pattern} signers (default: $email_git_all_signature_types) > > - --git-fallback => use git when no exact MAINTAINERS pattern (default: $email_git_fallback) > > - --git-chief-penguins => include ${penguin_chiefs} > > + --[no]git-fallback => use git when no exact MAINTAINERS pattern (default: $email_git_fallback) > > + --[no]git-chief-penguins => include ${penguin_chiefs} > > --git-min-signatures => number of signatures required (default: $email_git_min_signatures) > > --git-max-maintainers => maximum maintainers to add (default: $email_git_max_maintainers) > > --git-min-percent => minimum percentage of commits required (default: $email_git_min_percent) > > - --git-blame => use git blame to find modified commits for patch or file > > + --[no]git-blame => use git blame to find modified commits for patch or file > > --git-since => git history to use (default: $email_git_since) > > --hg-since => hg history to use (default: $email_hg_since) > > - --interactive => display a menu (mostly useful if used with the --git option) > > - --m => include maintainer(s) if any > > - --r => include reviewer(s) if any > > - --n => include name 'Full Name <addr\@domain.tld>' > > - --l => include list(s) if any > > - --s => include subscriber only list(s) if any > > - --remove-duplicates => minimize duplicate email names/addresses > > - --roles => show roles (status:subsystem, git-signer, list, etc...) > > - --rolestats => show roles and statistics (commits/total_commits, %) > > - --file-emails => add email addresses found in -f file (default: 0 (off)) > > - --scm => print SCM tree(s) if any > > - --status => print status if any > > - --subsystem => print subsystem name if any > > - --web => print website(s) if any > > + --[no]interactive => display a menu (mostly useful if used with the --git option) > > + --[no]m => include maintainer(s) if any > > + --[no]r => include reviewer(s) if any > > + --[no]n => include name 'Full Name <addr\@domain.tld>' > > + --[no]l => include list(s) if any > > + --[no]s => include subscriber only list(s) if any > > + --[no]remove-duplicates => minimize duplicate email names/addresses > > + --[no]roles => show roles (status:subsystem, git-signer, list, etc...) > > + --[no]rolestats => show roles and statistics (commits/total_commits, %) > > + --[no]file-emails => add email addresses found in -f file (default: 0 (off)) > > + --[no]scm => print SCM tree(s) if any > > + --[no]status => print status if any > > + --[no]subsystem => print subsystem name if any > > + --[no]web => print website(s) if any > > > > 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 > > + --[no]multiline => print 1 entry per line > > > > Other options: > > --pattern-depth => Number of pattern directory traversals (default: 0 (all)) > > - --keywords => scan patch for keywords (default: $keywords) > > - --sections => print all of the subsystem sections with pattern matches > > - --mailmap => use .mailmap file (default: $email_use_mailmap) > > + --[no]keywords => scan patch for keywords (default: $keywords) > > + --[no]sections => print all of the subsystem sections with pattern matches > > + --[no]mailmap => use .mailmap file (default: $email_use_mailmap) > > --version => show version > > --help => show this help information > > > > -- > > 2.5.0.276.gf5e568e > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] get_maintainer: add --no-foo options to --help 2015-10-14 17:15 ` Joe Perches @ 2015-10-14 17:33 ` Brian Norris 2015-10-14 17:38 ` Joe Perches 0 siblings, 1 reply; 6+ messages in thread From: Brian Norris @ 2015-10-14 17:33 UTC (permalink / raw) To: Joe Perches; +Cc: linux-kernel, Andrew Morton + akpm On Wed, Oct 14, 2015 at 10:15:31AM -0700, Joe Perches wrote: > On Wed, 2015-10-14 at 10:10 -0700, Brian Norris wrote: > > Ping? Should I resend? > > I don't have a strong opinion about this. > > It seems the [no] blocks make the generic options more > difficult to read. The '[no]' formatting is similar to how some (but not all) man pages do this. If it is too difficult, I'm open to something else. Just a note somewhere that all boolean options have equivalent '--no<foo>' options? BTW, one thing I didn't note in the commit message is that this is important because some options are already *on* by default, and so it is only sensible to use the --no version, which isn't even documented. Particularly, options like --norolestats. Brian > If you do resend, please cc "Andrew Morton <akpm@linux-foundation.org>" > > > On Wed, Aug 19, 2015 at 03:09:39PM -0700, Brian Norris wrote: > > > Many flag options are boolean and support both a positive and a negative > > > invocation from the command line. Some of these are even mentioned by > > > example (e.g., --nogit is mentioned as a default option), but they > > > aren't explicitly mentioned in the list of options. It happens that some > > > of these are pretty important, as they are default-on, and to turn them > > > off, you have to know about the --no-foo version. > > > > > > Anyway, let's document them now. > > > > > > Signed-off-by: Brian Norris <computersforpeace@gmail.com> > > > --- > > > scripts/get_maintainer.pl | 48 +++++++++++++++++++++++------------------------ > > > 1 file changed, 24 insertions(+), 24 deletions(-) > > > > > > diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl > > > index 98bae869f6d0..04ae47a8a5bd 100755 > > > --- a/scripts/get_maintainer.pl > > > +++ b/scripts/get_maintainer.pl > > > @@ -771,43 +771,43 @@ usage: $P [options] patchfile > > > version: $V > > > > > > MAINTAINER field selection options: > > > - --email => print email address(es) if any > > > - --git => include recent git \*-by: signers > > > - --git-all-signature-types => include signers regardless of signature type > > > + --[no]email => print email address(es) if any > > > + --[no]git => include recent git \*-by: signers > > > + --[no]git-all-signature-types => include signers regardless of signature type > > > or use only ${signature_pattern} signers (default: $email_git_all_signature_types) > > > - --git-fallback => use git when no exact MAINTAINERS pattern (default: $email_git_fallback) > > > - --git-chief-penguins => include ${penguin_chiefs} > > > + --[no]git-fallback => use git when no exact MAINTAINERS pattern (default: $email_git_fallback) > > > + --[no]git-chief-penguins => include ${penguin_chiefs} > > > --git-min-signatures => number of signatures required (default: $email_git_min_signatures) > > > --git-max-maintainers => maximum maintainers to add (default: $email_git_max_maintainers) > > > --git-min-percent => minimum percentage of commits required (default: $email_git_min_percent) > > > - --git-blame => use git blame to find modified commits for patch or file > > > + --[no]git-blame => use git blame to find modified commits for patch or file > > > --git-since => git history to use (default: $email_git_since) > > > --hg-since => hg history to use (default: $email_hg_since) > > > - --interactive => display a menu (mostly useful if used with the --git option) > > > - --m => include maintainer(s) if any > > > - --r => include reviewer(s) if any > > > - --n => include name 'Full Name <addr\@domain.tld>' > > > - --l => include list(s) if any > > > - --s => include subscriber only list(s) if any > > > - --remove-duplicates => minimize duplicate email names/addresses > > > - --roles => show roles (status:subsystem, git-signer, list, etc...) > > > - --rolestats => show roles and statistics (commits/total_commits, %) > > > - --file-emails => add email addresses found in -f file (default: 0 (off)) > > > - --scm => print SCM tree(s) if any > > > - --status => print status if any > > > - --subsystem => print subsystem name if any > > > - --web => print website(s) if any > > > + --[no]interactive => display a menu (mostly useful if used with the --git option) > > > + --[no]m => include maintainer(s) if any > > > + --[no]r => include reviewer(s) if any > > > + --[no]n => include name 'Full Name <addr\@domain.tld>' > > > + --[no]l => include list(s) if any > > > + --[no]s => include subscriber only list(s) if any > > > + --[no]remove-duplicates => minimize duplicate email names/addresses > > > + --[no]roles => show roles (status:subsystem, git-signer, list, etc...) > > > + --[no]rolestats => show roles and statistics (commits/total_commits, %) > > > + --[no]file-emails => add email addresses found in -f file (default: 0 (off)) > > > + --[no]scm => print SCM tree(s) if any > > > + --[no]status => print status if any > > > + --[no]subsystem => print subsystem name if any > > > + --[no]web => print website(s) if any > > > > > > 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 > > > + --[no]multiline => print 1 entry per line > > > > > > Other options: > > > --pattern-depth => Number of pattern directory traversals (default: 0 (all)) > > > - --keywords => scan patch for keywords (default: $keywords) > > > - --sections => print all of the subsystem sections with pattern matches > > > - --mailmap => use .mailmap file (default: $email_use_mailmap) > > > + --[no]keywords => scan patch for keywords (default: $keywords) > > > + --[no]sections => print all of the subsystem sections with pattern matches > > > + --[no]mailmap => use .mailmap file (default: $email_use_mailmap) > > > --version => show version > > > --help => show this help information > > > > > > -- > > > 2.5.0.276.gf5e568e > > > > > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] get_maintainer: add --no-foo options to --help 2015-10-14 17:33 ` Brian Norris @ 2015-10-14 17:38 ` Joe Perches 0 siblings, 0 replies; 6+ messages in thread From: Joe Perches @ 2015-10-14 17:38 UTC (permalink / raw) To: Brian Norris; +Cc: linux-kernel, Andrew Morton On Wed, 2015-10-14 at 10:33 -0700, Brian Norris wrote: > + akpm > > On Wed, Oct 14, 2015 at 10:15:31AM -0700, Joe Perches wrote: > > On Wed, 2015-10-14 at 10:10 -0700, Brian Norris wrote: > > > Ping? Should I resend? > > > > I don't have a strong opinion about this. > > > > It seems the [no] blocks make the generic options more > > difficult to read. > > The '[no]' formatting is similar to how some (but not all) man pages do > this. If it is too difficult, I'm open to something else. Just a note > somewhere that all boolean options have equivalent '--no<foo>' options? > > BTW, one thing I didn't note in the commit message is that this is > important because some options are already *on* by default, and so it is > only sensible to use the --no version, which isn't even documented. > Particularly, options like --norolestats. Maybe using something like gcc's documentation of options that have negative forms might be better. $ man gcc ... Most of these have both positive and negative forms; the negative form of -ffoo is -fno-foo ... $ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-10-14 17:38 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-08-19 22:09 [PATCH 1/2] get_maintainer: add --no-foo options to --help Brian Norris 2015-08-19 22:09 ` [PATCH 2/2] get_maintainer: add missing documentation for --[no]git-blame-signatures Brian Norris 2015-10-14 17:10 ` [PATCH 1/2] get_maintainer: add --no-foo options to --help Brian Norris 2015-10-14 17:15 ` Joe Perches 2015-10-14 17:33 ` Brian Norris 2015-10-14 17:38 ` Joe Perches
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox