Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp251364imm; Fri, 25 May 2018 21:46:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq8nZ6ZPs1nLhYDmrplVarJ/8czY9DtXBvTHYU7Nopg4t9acwxJlOM/niOmd/P8ImHbLPSl X-Received: by 2002:a17:902:bd95:: with SMTP id q21-v6mr2413317pls.237.1527309970163; Fri, 25 May 2018 21:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527309970; cv=none; d=google.com; s=arc-20160816; b=l8EnX/ctzfQumcVoaCTiPc6cRGKsvG7/aVrzxqAmgU9qP2F9mo27APSX0EVjrVQHhn XgSM4PqgLlcUynuFnr95tMtrlg37Nz8LkoERmhSUzaACXRW4xQqqw5I4Wo1px18mwFy2 WCz38grUnEnrE5+h3PW0q9vGFMLcwCAI5kvp2wh6s6Y4hSe97Dd+Ru0q0BcCxlHaXrkQ MAlhK9i33fcN0bS0HK6Nh5p4PzjCmZGt4gLz1wY+nDsMZK2KZbTAyrm0duiui4GDzyRY VDnol34OzSoCSAvec0tGLLf8F4Bh7ObZRGeYjb6eIlhaoeswyD18FPhpRPul0EGURPaz pm5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=jraAKsdneKP17tFaZ2k0RN8nZI7VFUrYFtfZd3a02dw=; b=tPPNKtTbEeHmKwdXH7jbjRxtuRqUFUy9TE5hMplN54oSQAurz9eUId0TpFy02skpZh Gq1RZW5Bl7W7wcypCTPyREsFsh9kiZpfrO+j5iDavZcwxlbBapIvD6grU0VYaVXJa0uG Pu3nC2BUM2FUZ6EnTxlSD0ioIel22aam+rq1B22909fsIQMet44iZ3voD21yc9+JNduW sD95aS7BJg+JdSNftM2PdxPhXI1ADnXKC+ddwU9im5Wn1kO4MmB6EFr30e9jg37wDxpt tFODtpdFWasyQY0gbOuu3YDWk+9UOggvNKMfNofMg9/9Nzyo8IYWwRghw2KW+yWKD6J9 kWAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=rQ1Lawo8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si25226218plx.236.2018.05.25.21.45.55; Fri, 25 May 2018 21:46:10 -0700 (PDT) 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; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=rQ1Lawo8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933141AbeEZEpo (ORCPT + 99 others); Sat, 26 May 2018 00:45:44 -0400 Received: from ozlabs.org ([203.11.71.1]:34085 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932079AbeEZEpm (ORCPT ); Sat, 26 May 2018 00:45:42 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40t9Y05LdRz9s16; Sat, 26 May 2018 14:45:40 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1527309941; bh=ZXP5bn9JhMtw++GvNGg5OXrDvvkoKWF9qU/kngyZhPg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rQ1Lawo8PtTEPPvn5PoXEWMMukGmo8XeNQ3hkrDwCo8zRvIUFtd4tbl5nQjdp5bkH iA8WdSUH8L8MYENdPWQsN/NsHHbvO7sGPxwoHVzpzWK7zvDWtAeYO4vKxarKnVAB7H hv4oUU4epB+gTa13sli+wRYaB/azO1P9+cuFANu1zLK4OSwM736rHYv7SKC6zYAefI S2kRf+eA5miCaigmmzgqfp5SlywDXlWH2NqqhHid0W5maqfdiP0L0VUj5B034B8snW I9rnqriE6yHsaM5O3Jk+qftoGgNSJ7rGlqJ74BmJIDJ5M+gYjd5tZ0UnKynR8uD4Rt XJFkrSS1udEHQ== Date: Sat, 26 May 2018 14:45:39 +1000 From: Stephen Rothwell To: Mauro Carvalho Chehab Cc: Greg KH , Mauro Carvalho Chehab , Linux-Next Mailing List , Linux Kernel Mailing List , Sakari Ailus , Linus Walleij , Alan Cox , Andy Shevchenko Subject: Re: linux-next: manual merge of the staging tree with the v4l-dvb tree Message-ID: <20180526144539.242ec752@canb.auug.org.au> In-Reply-To: <20180517070657.642d3784@vento.lan> References: <20180517141727.3119e1da@canb.auug.org.au> <20180517070657.642d3784@vento.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/K2ngPDwybejZ=SdgVNohLTh"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/K2ngPDwybejZ=SdgVNohLTh Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Mauro, On Thu, 17 May 2018 07:06:57 -0300 Mauro Carvalho Chehab wrote: > > What do you use in order to check it? Maybe we could have some git > hook running such check, in order to prevent merging patches without > the right SOBs. I run the script below on the range of new commits each time a fetch a tree ... --=20 Cheers, Stephen Rothwell ------------------------------------------------------------------------ #!/bin/bash if [ "$#" -lt 1 ]; then printf "Usage: %s \n", "$0" 1>&2 exit 1 fi commits=3D$(git rev-list --no-merges "$@") if [ -z "$commits" ]; then printf "No commits\n" exit 0 fi for c in $commits; do ae=3D$(git log -1 --format=3D'%ae' "$c") aE=3D$(git log -1 --format=3D'%aE' "$c") an=3D$(git log -1 --format=3D'%an' "$c") aN=3D$(git log -1 --format=3D'%aN' "$c") ce=3D$(git log -1 --format=3D'%ce' "$c") cE=3D$(git log -1 --format=3D'%cE' "$c") cn=3D$(git log -1 --format=3D'%cn' "$c") cN=3D$(git log -1 --format=3D'%cN' "$c") sob=3D$(git log -1 --format=3D'%b' "$c" | grep -i '^[[:space:]]*Signed-off= -by:') am=3Dfalse cm=3Dfalse grep -i -q "<$ae>" <<<"$sob" || grep -i -q "<$aE>" <<<"$sob" || grep -i -q ":[[:space:]]*$an[[:space:]]*<" <<<"$sob" || grep -i -q ":[[:space:]]*$aN[[:space:]]*<" <<<"$sob" || am=3Dtrue grep -i -q "<$ce>" <<<"$sob" || grep -i -q "<$cE>" <<<"$sob" || grep -i -q ":[[:space:]]*$cn[[:space:]]*<" <<<"$sob" || grep -i -q ":[[:space:]]*$cN[[:space:]]*<" <<<"$sob" || cm=3Dtrue if "$am" || "$cm"; then printf "Commit %s\n" "$c" "$am" && printf "\tauthor SOB missing\n" "$cm" && printf "\tcommitter SOB missing\n" printf "%s %s\n%s\n" "$ae" "$ce" "$sob" fi done exec gitk "$@" ------------------------------------------------------------------------ --Sig_/K2ngPDwybejZ=SdgVNohLTh Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlsI5nMACgkQAVBC80lX 0GyOfAf+I9bNLP9pH2jc8zi8IrajqxRQOb3szaQfFGzAGmEEJw9IWcb55srOrtjp v9/TToFHMYjuFdyocEcBueau5Hi61aYfeTGp87K1dX80nUkyJcEPJdUa+EZnDYWE Djm6aQDys2j5QdwXg4x19lLSiNqZTWbPStIfCmsBWddzq/pNaUcE5SUTaBQQl0vZ OcpZBDJ4au7VlXm41N0DTGJSXTeNqfbOPITzPSPQHIVXdh5k4VqfsyBPVk/vuPPW qhQIhcxRxcDFKnk7s+L0vQAugyRHPWUoV3UlALqsLWTIogDCE0WIb6j5p4yngS5d NbZOCyAmZvPgetz8fBFJl/JcRjVc5A== =xVEf -----END PGP SIGNATURE----- --Sig_/K2ngPDwybejZ=SdgVNohLTh--