From patchwork Fri Jan 15 13:08:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 363650 Delivered-To: patch@linaro.org Received: by 2002:a17:906:fb05:0:0:0:0 with SMTP id lz5csp559728ejb; Fri, 15 Jan 2021 06:33:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/D9ap+QE5NY4e302NcEOBGEhO0CXdLdCH89Fp79doRAwCJFfLX8OKL/kOxazTltKkttic X-Received: by 2002:a25:4843:: with SMTP id v64mr17463350yba.24.1610721188381; Fri, 15 Jan 2021 06:33:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610721188; cv=none; d=google.com; s=arc-20160816; b=uw48qlgxyGWZSrb5opVK/cZjXMOM3Z0wcXRxCILIKoXnfE4nHwz0aL6nkJGOXCXl1R ww9OR0D0UfBHv8CmkctKgnrlFac9Lb9p1+v5q7ef4KjJVgHoF1NvYMZqZttlnuerijjG VPRpLmHCEpDGzTzlCVvrIS1LFVvEg7l+2tIVCKB9v3VNr9ttqIPTRleZFYlrzQfIU36a IAxQ/XnI6jxawGuKFtzI6KdXxqkOtsZtvHzXWSS4JKJHMmq1TGBmt5S6bz5MkL8ehMnT HHTsjwhHRg9MfOshwGmJWqMMVpNv9PKmqWqm+mvuzqDjIHWPOSZX65UeUeQYReEzJXdO bT7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=dUtwtJbUZsSTf0W75DM+q3KlG12586cM2haaQCIRHuk=; b=le0Vp9JlP+ZBpC95JwyyaoKI6rFgdANSJ/X/nyamOPNmSelN9uQsDKIyheHQjxoMwe LMvW/3z9cZcDOEa/cuK5ZilLeo9L83clB8d3UeIwzoD8ynfES0r5WnBgy0Nh111h7qie 7QViu+3lSyKAKHjJyZ5C/X9Sx0DHja9Lx5m/dBoMBH6nvahuAoB6dxt1WutPQbsDwQjN dO9T0kVByDwhdq96ruvl0jUb9kliTjAIl1bIfGMhdv0VkFHPEB5ywwFJB4F+LLwE2Q2O sPLwcQySj7rUwBbgAacoSOoc4t/x/q2qN+f+gYfeCNYDzGM5oAfZDz2diOPxU6w03KXV mjBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VLD33elQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e12si1612699ybj.185.2021.01.15.06.33.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jan 2021 06:33:08 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VLD33elQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0Q9z-0007Pc-QG for patch@linaro.org; Fri, 15 Jan 2021 09:33:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0PEc-0001Mo-Q2 for qemu-devel@nongnu.org; Fri, 15 Jan 2021 08:33:50 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:55118) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0PEa-000894-Vr for qemu-devel@nongnu.org; Fri, 15 Jan 2021 08:33:50 -0500 Received: by mail-wm1-x32a.google.com with SMTP id i63so7376596wma.4 for ; Fri, 15 Jan 2021 05:33:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dUtwtJbUZsSTf0W75DM+q3KlG12586cM2haaQCIRHuk=; b=VLD33elQ3q3lJW2HhLrmNQronVELMi2mRbDhRTENVB8YnttDZvBflhnr63X8IQQATS zk7Nl8OV0UHnfFKxbfd4D3DFbjyHGt2moHv8VXJCpD41Q2rohYHB9264XZkloc1dBsep JGA20tSu/95Y8+S7sRqMhw029OOEcpd9f/DYOJrD6oScDYIR5FpKHOLyDLO7nN8Sfq3k RUxmeaKFFbn+kbb6BwSaZZzv/vtU+ME9YBewsuEvXKOY1TqozMBowSQ+Ez3V+MEVw5Oh nYdS/fAXovbh+X4B4CikvXIr2VBYGEge/4of61QxLAWUq+G21LLkXqoFTWyA6Y38dC7L NE2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dUtwtJbUZsSTf0W75DM+q3KlG12586cM2haaQCIRHuk=; b=FQOUn58cTPNHbQ9j9pXfx3+iedf9B+MuKXCAtIU371QO90GNtKQS6oRsXLHXVZtCiB JvC7JOBuXwNBXMD5EcU1J4cTTEBQcN3at6odknBr5BulRBeWZcusVgn6ql1fMsbvHZ1w XxSq7oDpnyyRrbUgHlhzUCQ11LZqE3E/BU9OUyyk6VlGriFLRoeVvjRGMZWZh1OZ0dbH C5GuMmcbNoj+kHVXU1nNk/4WZcm+0MLW/BgTRw425CDCh20dv7UPYa+TVW8WqZ9ssfID 3fqSIlHNbGmFwhgEfss6SACHc8+CHFQmkfJG0bpbp9WtMS+7FAXVgaXU0zjgR5jV3crK Urtg== X-Gm-Message-State: AOAM530pFi5AYdzNRZVhl4hBezyYCs9UKsbrvlrSF7HFyc4WyAZ//0wO QkTwcc92W/1Vq4H+x9HPhjp5Ww== X-Received: by 2002:a7b:cb9a:: with SMTP id m26mr8713365wmi.130.1610717627562; Fri, 15 Jan 2021 05:33:47 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id t1sm15325867wro.27.2021.01.15.05.33.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 05:33:40 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 29EEC1FF9B; Fri, 15 Jan 2021 13:08:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 12/30] scripts/checkpatch.pl: fix git-show invocation to include diffstat Date: Fri, 15 Jan 2021 13:08:10 +0000 Message-Id: <20210115130828.23968-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210115130828.23968-1-alex.bennee@linaro.org> References: <20210115130828.23968-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Willian Rampazzo , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?b?ZMOp?= , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Without this checkpatch keeps complaining about new/changed files even when MAINTAINERS has been updated. Normal invocations of checkpatch on patch files rather than commit IDs are unaffected. Signed-off-by: Alex Bennée Tested-by: Philippe Mathieu-Daudé Reviewed-by: Willian Rampazzo Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20210114165730.31607-13-alex.bennee@linaro.org> -- 2.20.1 diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 88c858f67c..e47ad878d8 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -399,7 +399,7 @@ if ($chk_branch) { my $num_patches = @patches; for my $hash (@patches) { my $FILE; - open($FILE, '-|', "git", "show", $hash) || + open($FILE, '-|', "git", "show", "--patch-with-stat", $hash) || die "$P: git show $hash - $!\n"; while (<$FILE>) { chomp;