Received: by 10.223.164.202 with SMTP id h10csp3647707wrb; Tue, 28 Nov 2017 15:00:41 -0800 (PST) X-Google-Smtp-Source: AGs4zMZsoJfa5ev8h6cNU1kxfqPE6rb1HksxPsPqgywu2N2/9DxIzQTOr5eG0ktat4GYM92oTUY5 X-Received: by 10.99.124.85 with SMTP id l21mr722318pgn.85.1511910041064; Tue, 28 Nov 2017 15:00:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511910041; cv=none; d=google.com; s=arc-20160816; b=qxgZzrefY5oR4Mp9spgMLNKcUaysFbRM5oVthXp/mxkIh4FD3UIT1M9y/0JJgiY61S aUZBM98IVNSb1woJmTOiTfPPl+Tj7FUhrfeBqX7v25KVtq60tw9fNvdh+7wfoDMue3nG aAHVx6X7zYAEWf96yEe+CEDrifQBAwXnzTyK5LpKl/6WFlNZ03ZPn2fbjlc4fD7wXTXf BrjnhopXCqoq6gW70cHvBN8nZ6fN9K8g97nOUdYzsQa29JbzicBIgFOj92H7HLYNyZXQ NllOiwDYiSzezfqthijde92dXtc3Z6/610T7SOt2RI5sQ87eOfJvvaUI9Z5Ku3q3BosU e7Cw== 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=uOvf+o1vlmWCd5anxIicFq/DcwGJE8RMDpMyXtZYDo8=; b=WouN0K74twyWoGf/ECDHh6goTUKTzhbRrSMn4DERfUiDBQG0lwY1FOQLW7cgB96XrD eXEYj6h7/T6F9mmceycgUAMFdAnBLwFCoz4vi515eFOz6G4fmxpLMUIswjUs5peM/5Oa UQjuLlWMef5ETXxNEO0SejqzDTpeM2avmdMOJdGazKRSCD0dZaczDsD3aUlYs4JLB5kW xoiU/vvR9G6zTCEWeJgTDx1AoJjgj5SAN1rRTJ5j10O4rOW4+C8pHgorkpgUpXR3+aEE LFZHSmGjWpJDjmUa1vChDajbpGZCefXrRhjqDAZqebYrUjNA99kkrFRGiMoS6aHKLPt7 jDVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=l4pexjaM; 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 w15si197799pgv.219.2017.11.28.15.00.30; Tue, 28 Nov 2017 15:00:41 -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; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=l4pexjaM; 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 S1752748AbdK1W7T (ORCPT + 70 others); Tue, 28 Nov 2017 17:59:19 -0500 Received: from ozlabs.org ([103.22.144.67]:36137 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752367AbdK1W7S (ORCPT ); Tue, 28 Nov 2017 17:59:18 -0500 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 3ymfHS5Byzz9sBd; Wed, 29 Nov 2017 09:59:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1511909956; bh=ry0DOcMzhRF3+Cv7gfsX+eezLIByf7K35ubfMBd9hXU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=l4pexjaMmTwJ1dfohNEZn0wneRzItQ0adwjJ6QsZYNx9Ggx9hTcPu0ftlwlEzb8Bx kDNDnWpBPDuJ672HfPX45IdaEVZYLjs3t+J4gttSpbnuPrw3zyG3Rl9ZHUUMBKcFZD odqG00QsN8rjqE2RjyWCGBbFgEzvf+tLd6JYvKtnhp54KW33raby78T60rL3Wub6J7 52zeXbj/+1komcTA30zCVXdDuvFwuNL5eJmsks4GYvKuLur4a/Tw/Sl01kFbsseMMa pMi6V/OAFt5pkUq0jYZqlLTDimNkUNRqlkkXkicCBPgafRZDDZCfyPfXveOk3BpLEe BgGHGEdxfrvUw== Date: Wed, 29 Nov 2017 09:59:16 +1100 From: Stephen Rothwell To: Greg KH Cc: Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: Signed-off-by missing for commits in the staging tree Message-ID: <20171129095916.062d6f7d@canb.auug.org.au> In-Reply-To: <20171128194139.GA2653@kroah.com> References: <20171128081651.71a2e92a@canb.auug.org.au> <20171128194139.GA2653@kroah.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/doR0lJ+HwCEyjQO_XgeImZN" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --MP_/doR0lJ+HwCEyjQO_XgeImZN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Greg, On Tue, 28 Nov 2017 20:41:39 +0100 Greg KH wrote: > > I need to set up a git hook for this :( I couldn't find an appropriate hook for fetching or merging other trees :-( Instead I run the attached script below after each fetch. -- Cheers, Stephen Rothwell --MP_/doR0lJ+HwCEyjQO_XgeImZN Content-Type: application/x-shellscript Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=check_commits #!/bin/bash if [ "$#" -lt 1 ]; then printf "Usage: %s \n", "$0" 1>&2 exit 1 fi for c in $(git rev-list --no-merges "$@"); do ae=$(git log -1 --format='%ae' "$c") aE=$(git log -1 --format='%aE' "$c") an=$(git log -1 --format='%an' "$c") aN=$(git log -1 --format='%aN' "$c") ce=$(git log -1 --format='%ce' "$c") cE=$(git log -1 --format='%cE' "$c") cn=$(git log -1 --format='%cn' "$c") cN=$(git log -1 --format='%cN' "$c") sob=$(git log -1 --format='%b' "$c" | grep -i '^[[:space:]]*Signed-off-by:') am=false cm=false 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=true 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=true 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 "$@" --MP_/doR0lJ+HwCEyjQO_XgeImZN-- From 1585340125384642445@xxx Tue Nov 28 19:42:40 +0000 2017 X-GM-THRID: 1585255511557675077 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread