Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp977750imp; Wed, 20 Feb 2019 12:38:44 -0800 (PST) X-Google-Smtp-Source: AHgI3IaOdKrEDvwnfKdAXCrYV5J8OzSUpJuRmctA5fsYDfdHPWFaqkIy+O2LXeILLWX0BImRTTuu X-Received: by 2002:a63:ef05:: with SMTP id u5mr8776642pgh.177.1550695124423; Wed, 20 Feb 2019 12:38:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550695124; cv=none; d=google.com; s=arc-20160816; b=yS4lTIAqjrmYo676xyBpHHijU2ek/wNb85UFmD5clzKx3Bn5E703QQ1vSgxhfF2UrQ J+TL3DdOYaoueJIF21eB8Jxf/ruyCZuX9vql3tZLwVbgb5276lu35ypCho7L+mgoF74s WLkCJ+Z9Azi+ZRArRroOpCCryDtarT71Yjphgau8f41iCXwhsA5LebNejenATzWOySXZ ZpLrrgoBxF0Mdd957XZrV76DPw/z0Cp5G3JK9om0T7tjfic3TAm/Twh+tJlMGEgTh01v TRnWIzHDKACV4OSCBrw/zuDLZSYF6Lai0BHOtDtF7tPDPximL/4cxPqL9OUWW+g12yAE ensQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=49ExnxZWPVn4/bmDm6Up5EnsoNAQlUIiIs4BpGW5TZw=; b=PJuTqNTY0sFD5/VkfF7JKHv8RDRDUt8X2f+gF4CtCe+hE3/DzZ9DW1HWZyl6/MG0B6 vrYax+/EBDSH2bzRNfjogpNpeZVx0QPm53RrjPeTyFhUZlQxsfHERgBqbtfT4J+fqX8l Bi8aV2Z/FslnCmhDG23SZx6QDlEzy1baMy7uQTFx6cx8JsIMT7sjXo39ZAKuh0MzognP hFApOfJHtdcOO9MwFYW3CKm8Rnxoc8cU2LCbw3q+OfpdNSaqHMbDM/bO8OONBWmMSiip mu1SHcvai9qt038E420tknx7VYrf3RPV75rHu1YOw1rzzXfLRDnI16XMZtmWQx2MSBsU 1M3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si13171608pld.425.2019.02.20.12.38.27; Wed, 20 Feb 2019 12:38:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726921AbfBTUhh (ORCPT + 99 others); Wed, 20 Feb 2019 15:37:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35646 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbfBTUhh (ORCPT ); Wed, 20 Feb 2019 15:37:37 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C0DF8757DB; Wed, 20 Feb 2019 20:37:36 +0000 (UTC) Received: from localhost (ovpn-200-19.brq.redhat.com [10.40.200.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F2B815D9D2; Wed, 20 Feb 2019 20:37:33 +0000 (UTC) Date: Wed, 20 Feb 2019 21:37:29 +0100 From: Stefano Brivio To: David Miller Cc: jiri@resnulli.us, vkoul@kernel.org, sfr@canb.auug.org.au, netdev@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, andrew@lunn.ch Subject: Re: linux-next: Fixes tag needs some work in the net-next tree Message-ID: <20190220213729.49deb54f@redhat.com> In-Reply-To: <20190220.122548.2257661716734858013.davem@davemloft.net> References: <20190220083611.GJ3080@nanopsycho> <20190220.110201.2245447687492293995.davem@davemloft.net> <20190220205910.7bd7fd40@redhat.com> <20190220.122548.2257661716734858013.davem@davemloft.net> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 20 Feb 2019 20:37:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Feb 2019 12:25:48 -0800 (PST) David Miller wrote: > From: Stefano Brivio > Date: Wed, 20 Feb 2019 20:59:10 +0100 > > > On Wed, 20 Feb 2019 11:02:01 -0800 (PST) > > David Miller wrote: > > > >> From: Jiri Pirko > >> Date: Wed, 20 Feb 2019 09:36:11 +0100 > >> > >> > Would be good to have some robot checking "Fixes" sanity... > >> > >> I want to add a script to my trees that locally do it for me but the > >> backlog for patch review for me is so huge that I never get to "fun" > >> tasks like that.... > > > > If it helps, this is what I use after being bitten once: > > Awesome, thanks! You put this in as a pre-commit script? Nope, I use it before sending patches out with git send-email. But you can use this as .git/hooks/commit-msg, just skip taking the tree as second argument, something like this (just quickly tested): #!/bin/sh grep "^Fixes: " "${1}" | while read -r f; do sha="$(echo "${f}" | cut -d' ' -f2)" if [ -z "${sha}" ] || [ "${f}" != "$(git show -s --abbrev=12 --pretty=format:"Fixes: %h (\"%s\")" "${sha}" 2>/dev/null)" ]; then echo "Bad tag: ${f}" && exit 1 fi done -- Stefano