Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp215731pxb; Sat, 21 Aug 2021 00:13:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywwyb/P9psJd6RJuAhhVhnrt4vFQif8V8FHUMP/GfZ8tjwHQQdTOGqDJNzivFbnUwFV8O/ X-Received: by 2002:a6b:f908:: with SMTP id j8mr482007iog.22.1629530021802; Sat, 21 Aug 2021 00:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629530021; cv=none; d=google.com; s=arc-20160816; b=LYcnYSj1S9t4o1xOCNSLgPOC56Gj0FEMOSX/9Rtm8yFF+0diBCxDFNqWiilGXmLn1L Gy1MCvgps4p7t+BQPQyLPnhK5tqEcnMrEiQ0p+5TS9NdB6SfZKV9ivVm+yOExjA7KaDu GiDnaXXb/jT9DynlxRpvxZWrVxvK9hZ1x6zn41FKpX7juboWWtCguSfX2Rd5Us7YD+BN 4KgLpSNXEp/zxK0XAwJCXqmeDH3DE47dAkJEeqHiFWpzReiXzBiAXrgUXsg30+alaP8S Wdx1qdmQahWOWqlRUMJd8gICwnk6/KvZNoG090/bIUPWd7dk5LOd2bGMIlfnAINdb7OX crHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=3sf4cpqX3mI25eEcNf6zagyRLd8sLtSm05seZSl24zY=; b=G3DdW8Flj/+a5jF6YyaOPO57hLOql6FU5MP1iTTqbWbu4HpyVSydsOS5p8UCSwGAy4 v48K1Huaai0cOCtKiipUy1KEdlpCPabXtuA5Pfo2mZAjoSqS5gNT2oMtMMZnLevuk7R+ cqjbyWT3yfH3iuVyVqT2UWdNZF6jjyX8q3tYb0KvwuDpw5YBbD9Xb4rjnQGW3kzE2jST vmLnFaigBFWCVsvMVAWZZO+Np1Kb+ZXINy5fBVJbwHl2CF/AjvolzoCH3Rc9h7vYY0Aq A3bnKrArAADRafwq4PCPfR17Z/lvkazeTuIc8yM+qyiwZXHGvSD9ofq3/ig9QyEi/30f uKWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si2443614ill.90.2021.08.21.00.13.29; Sat, 21 Aug 2021 00:13:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232195AbhHUHNW (ORCPT + 99 others); Sat, 21 Aug 2021 03:13:22 -0400 Received: from smtprelay0141.hostedemail.com ([216.40.44.141]:59738 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231738AbhHUHNV (ORCPT ); Sat, 21 Aug 2021 03:13:21 -0400 Received: from omf13.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id CB4FB182CED28; Sat, 21 Aug 2021 07:12:41 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf13.hostedemail.com (Postfix) with ESMTPA id 6C48B1124F5; Sat, 21 Aug 2021 07:12:40 +0000 (UTC) Message-ID: <4bf2c7360206025731928fa1c8ad95faa9e65ab8.camel@perches.com> Subject: Re: [RFC PATCH 1/5] checkpatch: improve handling of revert commits From: Joe Perches To: Denis Efremov , linux-kselftest@vger.kernel.org, Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Jens Axboe , Jiri Kosina , Willy Tarreau Date: Sat, 21 Aug 2021 00:12:38 -0700 In-Reply-To: <7eda27d1-9e9f-dfd6-3a54-6c592a797ea5@linux.com> References: <20210818154646.925351-1-efremov@linux.com> <20210818154646.925351-2-efremov@linux.com> <3d347d4b-1576-754f-8633-ba6084cc0661@linux.com> <23c8ebaa0921d5597df9fc1d6cbbcc4f354f80c5.camel@perches.com> <7eda27d1-9e9f-dfd6-3a54-6c592a797ea5@linux.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.0-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.77 X-Stat-Signature: e6zddby7k45gc1jw8hrj6auapwibzku5 X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: 6C48B1124F5 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19GFSb9ojxZ31XdQAhWXKFgy+pom9K3j9o= X-HE-Tag: 1629529960-591553 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2021-08-21 at 09:47 +0300, Denis Efremov wrote: > > On 8/20/21 1:17 AM, Joe Perches wrote: > > > > And I'm not sure if this particular ERROR is that useful overall. > > I find it useful to check commit-id and that it matches a title. > It's easy to make a typo in commit-id and get an invalid one. That's true, but I meant requiring the sha1 hash to contain both the word "commit" and use ("title"). Looking at checkpatch's errors produced by this GIT_COMMIT_ID test makes the required form seem a bit too inflexible to me. For instance: a sha1 hash may be repeated in a commit message where the first instance has the correct form but the second use is just the hash and the warning is still produced.