From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B14DFC352A4 for ; Thu, 13 Feb 2020 01:33:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8F9CD24676 for ; Thu, 13 Feb 2020 01:33:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729428AbgBMBdV (ORCPT ); Wed, 12 Feb 2020 20:33:21 -0500 Received: from smtprelay0101.hostedemail.com ([216.40.44.101]:42230 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729285AbgBMBdV (ORCPT ); Wed, 12 Feb 2020 20:33:21 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 124AA1801A89A; Thu, 13 Feb 2020 01:33:20 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: bike27_572f8f1d99a5a X-Filterd-Recvd-Size: 2605 Received: from XPS-9350.home (unknown [47.151.143.254]) (Authenticated sender: joe@perches.com) by omf12.hostedemail.com (Postfix) with ESMTPA; Thu, 13 Feb 2020 01:33:19 +0000 (UTC) Message-ID: <2dab786b686735ec0c4ee614c64448d78c67a51d.camel@perches.com> Subject: Re: [PATCH 1/1] checkpatch: support "base-commit:" format From: Joe Perches To: John Hubbard Cc: Andy Whitcroft , Jonathan Corbet , Konstantin Ryabitsev , LKML Date: Wed, 12 Feb 2020 17:32:01 -0800 In-Reply-To: References: <20200212233221.47662-1-jhubbard@nvidia.com> <20200212233221.47662-2-jhubbard@nvidia.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-02-12 at 17:06 -0800, Joe Perches wrote: > On Wed, 2020-02-12 at 15:32 -0800, John Hubbard wrote: > > In order to support the get-lore-mbox.py tool described in [1], I ran: > > > > git format-patch --base= --cover-letter > > > > ...which generated a "base-commit: " tag at the end of the > > cover letter. However, checkpatch.pl generated an error upon encounting > > "base-commit:" in the cover letter: > > > > "ERROR: Please use git commit description style..." > > > > ...because it found the "commit" keyword, and failed to recognize that > > it was part of the "base-commit" phrase, and as such, should not be > > subjected to the same commit description style rules. > > > > Update checkpatch.pl to include a special case for "base-commit:", so > > that that tag no longer generates a checkpatch error. [] > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > > @@ -2761,6 +2761,7 @@ sub process { > > > > # Check for git id commit length and improperly formed commit descriptions > > if ($in_commit_log && !$commit_log_possible_stack_dump && > > + $line !~ /base-commit:/ && > > If this base-commit: entry is only at the start of line, > I presume this should actually be > > $line !~ /^base-commit:/ && > or maybe > $line !~ /^\s*base-commit:/ && > > > $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink):/i && and probably better to just add it to this line instead like $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i &&