All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: "Pottratz, Dwane" <dwane.pottratz@intel.com>,
	"apw@canonical.com" <apw@canonical.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>
Subject: Re: [PATCH] checkpatch.pl: add switch to turn off check for Change-Id
Date: Tue, 01 Mar 2016 10:31:28 -0800	[thread overview]
Message-ID: <1456857088.4436.31.camel@perches.com> (raw)
In-Reply-To: <575E9C847DA64B429BF50A3C5F8CA3CCA3C3AD05@ORSMSX112.amr.corp.intel.com>

On Tue, 2016-03-01 at 18:26 +0000, Pottratz, Dwane wrote:
> A commit hook for the Gerrit code review servers inserts change
> identifiers.  These identifiers are noise in the context of the
> upstream kernel.  However, they are needed in most development
> environments and the error needs to be ignored for static analysis
> tools.

It looks like there is some tab to space conversion corruption here.
Can you please resend it using some other email mechanism?

> Signed-off-by: Dwane Pottratz <dwane.pottratz@intel.com>
> ---
> scripts/checkpatch.pl | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 2b3c228..0756935 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -21,6 +21,7 @@ use Getopt::Long qw(:config no_auto_abbrev);
> my $quiet = 0;
> my $tree = 1;
> my $chk_signoff = 1;
> +my $chk_changeid = 1;
> my $chk_patch = 1;
> my $tst_only;
> my $emacs = 0;
> @@ -64,6 +65,7 @@ Options:
>    -q, --quiet                quiet
>    --no-tree                  run without a kernel tree
>    --no-signoff               do not check for 'Signed-off-by' line
> +  --no-changeid              do not check for 'Change-Id' line
>    --patch                    treat FILE as patchfile (default)
>    --emacs                    emacs compile window format
>    --terse                    one line per report
> @@ -136,6 +138,7 @@ GetOptions(
>                'q|quiet+'            => \$quiet,
>                'tree!'                    => \$tree,
>                'signoff!'              => \$chk_signoff,
> +             'changeid!'          => \$chk_changeid,
>                'patch!' => \$chk_patch,
>                'emacs!'               => \$emacs,
>                'terse!'  => \$terse,
> @@ -2310,7 +2313,7 @@ sub process {
>                                }
>  # Check for unwanted Gerrit info
> -                              if ($in_commit_log && $line =~ /^\s*change-id:/i) {
> +                             if ($in_commit_log && $line =~ /^\s*change-id:/i && $chk_changeid) {
>                                                ERROR("GERRIT_CHANGE_ID",
>                                                      "Remove Gerrit Change-Id's before submitting upstream.\n" . $herecurr);
>                                }
> --
> 1.9.1
> 

       reply	other threads:[~2016-03-01 18:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <575E9C847DA64B429BF50A3C5F8CA3CCA3C3AD05@ORSMSX112.amr.corp.intel.com>
2016-03-01 18:31 ` Joe Perches [this message]
2016-03-01 18:38   ` [PATCH] checkpatch.pl: add switch to turn off check for Change-Id Pottratz, Dwane
2016-03-01 18:37 Pottratz, Dwane
2016-03-01 21:41 ` Joe Perches
     [not found]   ` <575E9C847DA64B429BF50A3C5F8CA3CCA3C3B13C@ORSMSX112.amr.corp.intel.com>
2016-03-01 23:21     ` Joe Perches
2016-03-02 19:15       ` Pottratz, Dwane
2016-03-02 19:19         ` Joe Perches
     [not found] <1456247448-23968-1-git-send-email-dwane.pottratz@intel.com>
2016-03-01 16:49 ` Pottratz, Dwane
2016-03-01 17:45   ` Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456857088.4436.31.camel@perches.com \
    --to=joe@perches.com \
    --cc=akpm@linux-foundation.org \
    --cc=apw@canonical.com \
    --cc=dwane.pottratz@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.