1. 22 9月, 2009 4 次提交
    • J
      scripts/get_maintainer.pl: better email routines, use perl not shell where possible · 0e70e83d
      Joe Perches 提交于
      Added format_email and parse_email routines to reduce inline use.
      
      Added email_address_inuse to eliminate multiple maintainer entries
      for the same email address, the first name encountered is used.
      
      Used internal perl equivalents of shell cmd use of grep|cut|sort|uniq
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0e70e83d
    • J
      scripts/get_maintainer.pl: add --pattern-depth · 3fb55652
      Joe Perches 提交于
      --pattern-depth is used to control how many levels of directory traversal
      should be performed to find maintainers.  default is 0 (all directory levels).
      
      For instance:
      
      MAINTAINERS currently has multiple M: and F: entries that match
      net/netfilter/ipvs/ip_vs_app.c
      
      IPVS
      M:	Wensong Zhang <wensong@linux-vs.org>
      M:	Simon Horman <horms@verge.net.au>
      M:	Julian Anastasov <ja@ssi.bg>
      [...]
      F:	net/netfilter/ipvs/
      
      NETFILTER/IPTABLES/IPCHAINS
      [...]
      M:	Patrick McHardy <kaber@trash.net>
      [...]
      F:	net/netfilter/
      
      NETWORKING [GENERAL]
      M:	"David S. Miller" <davem@davemloft.net>
      [...]
      F:	net/
      
      THE REST
      M:	Linus Torvalds <torvalds@linux-foundation.org>
      [...]
      F:	*/
      
      Using this command will return all of those maintainers:
      (except Linus unless --git-chief-maintainers is specified)
      
      $ ./scripts/get_maintainer.pl --nogit -nol \
      	-f net/netfilter/ipvs/ip_vs_app.c
      Julian Anastasov <ja@ssi.bg>
      Simon Horman <horms@verge.net.au>
      Wensong Zhang <wensong@linux-vs.org>
      Patrick McHardy <kaber@trash.net>
      David S. Miller <davem@davemloft.net>
      
      Adding --pattern-depth=1 will match at the deepest level
      $ ./scripts/get_maintainer.pl --nogit -nol --pattern-depth=1 \
      	-f net/netfilter/ipvs/ip_vs_app.c
      Julian Anastasov <ja@ssi.bg>
      Simon Horman <horms@verge.net.au>
      Wensong Zhang <wensong@linux-vs.org>
      
      Adding --pattern-depth=2 will match at the deepest level and 1 higher
      $ ./scripts/get_maintainer.pl --nogit -nol --pattern-depth=2 \
      	-f net/netfilter/ipvs/ip_vs_app.c
      Julian Anastasov <ja@ssi.bg>
      Simon Horman <horms@verge.net.au>
      Wensong Zhang <wensong@linux-vs.org>
      Patrick McHardy <kaber@trash.net>
      
      and so on.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3fb55652
    • J
      scripts/get_maintainer.pl: add sections in pattern match depth order · 1d606b4e
      Joe Perches 提交于
      Before this change, matched sections were added in the order
      of appearance in the normally alphabetic section order of
      the MAINTAINERS file.
      
      For instance, finding the maintainer for drivers/scsi/wd7000.c
      would first find "SCSI SUBSYSTEM", then "WD7000 SCSI SUBSYSTEM",
      then "THE REST".
      
      before patch:
      
      $ ./scripts/get_maintainer.pl --nogit -f drivers/scsi/wd7000.c
      James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
      Miroslav Zagorac <zaga@fly.cc.fer.hr>
      linux-scsi@vger.kernel.org
      linux-kernel@vger.kernel.org
      
      get_maintainer.pl now selects matched sections by longest pattern match.
      Longest is the number of "/"s and any specific file pattern.
      
      This changes the example output order of MAINTAINERS to whatever is
      selected in "WD7000 SUBSYSTEM", then "SCSI SYSTEM", then "THE REST".
      
      after patch:
      
      $ ./scripts/get_maintainer.pl --nogit -f drivers/scsi/wd7000.c
      Miroslav Zagorac <zaga@fly.cc.fer.hr>
      James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
      linux-scsi@vger.kernel.org
      linux-kernel@vger.kernel.org
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1d606b4e
    • J
      scripts/get_maintainer.pl: add --git-blame · f5492666
      Joe Perches 提交于
      Julia Lawall suggested that get_maintainers.pl should have the
      ability to include signatories of commits that are modified by
      a particular patch.
      
      Vegard Nossum did something similar once.
      http://lkml.org/lkml/2008/5/29/449
      
      The modified script looks the commits for all lines in the
      patch, and includes the "-by:" signatories for those commits.
      It uses the same git-min-percent, git-max-maintainers, and
      git-min-signatures options.  git-since is ignored.
      
      It can be used independently from the --git default, so
              ./scripts/get_maintainers.pl --nogit --git-blame <patch>
      or
              ./scripts/get_maintainers.pl --nogit --git-blame -f <file>
      is acceptable.
      
      If used with -f <file>, all lines/commits for the file are
      checked.
      
      --git-blame can be slow if used with -f <file>
      --git-blame does not work with -f <directory>
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f5492666
  2. 30 7月, 2009 3 次提交
  3. 17 6月, 2009 10 次提交
  4. 11 4月, 2009 2 次提交
    • J
      scripts/get_maintainer.pl - Allow multiple files on command line · 4a7fdb5f
      Joe Perches 提交于
      Improve handling of "by:" signoffs
      Sorting and frequency checks are done by name/email, not
      by "by:" tag.
      Signed-off-by: NJoe Perches <joe@perches.com>
      4a7fdb5f
    • J
      Add scripts/get_maintainer.pl · cb7301c7
      Joe Perches 提交于
      A script to parse file pattern information in MAINTAINERS
      and return selected information about a file or patch
      
      usage: scripts/get_maintainer.pl [options] patchfile
             scripts/get_maintainer.pl [options] -f file
      version: 0.14
      
      MAINTAINERS field selection options:
        --email => print email address(es) if any
          --git => include git "*-by:" signers in commit count order
          --git-chief-penguins => include (Linus Torvalds)
          --git-min-signatures => number of signatures required (default: 1)
          --git-max-maintainers => maximum maintainers to add (default: 5)
          --git-since => git history to use (default: 1-year-ago)
          --m => include maintainer(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
        --scm => print SCM tree(s) if any
        --status => print status if any
        --subsystem => print subsystem name if any
        --web => print website(s) if any
      
      Output type options:
        --separator [, ] => separator for multiple entries on 1 line
        --multiline => print 1 entry per line
      
      Default options:
        [--email --git --m --n --l --multiline]
      
      Other options:
        --version => show version
        --help => show this help information
      Signed-off-by: NJoe Perches <joe@perches.com>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      cb7301c7