From patchwork Fri Oct 21 19:36:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 9389975 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DED7A60780 for ; Fri, 21 Oct 2016 19:38:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB0BF2A275 for ; Fri, 21 Oct 2016 19:38:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C02682A27B; Fri, 21 Oct 2016 19:38:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 87C362A275 for ; Fri, 21 Oct 2016 19:38:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E4BE6EDF4; Fri, 21 Oct 2016 19:37:40 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7D0B56EDD2 for ; Fri, 21 Oct 2016 19:37:30 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id f193so200590wmg.3 for ; Fri, 21 Oct 2016 12:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EDa2QXgF8roA4YDg8c7PLsqnlgUHv2DO5kw4iyhMxRY=; b=OqdOTEi3Th+d/eBA4ii6PsFwa2dsqojXifP7Eksgfiscj+m7/lS4yPX98QH5Elpvh4 Q63QqVqb/urMHfuCrPQGkkTwQInENUliv0CyDo2YGeG937/zjoN1uXDEqQ7tY4x1l3VZ r1za+i42pYVtLLyXOVRZuGl+ufkUg3OQKX46o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EDa2QXgF8roA4YDg8c7PLsqnlgUHv2DO5kw4iyhMxRY=; b=P2VwNxrNVZXMP9cchZC2wmIUqFK+n/F1BkIUKzpYv5GM0Ky8Bcu/XjCufZ1Aok3eMU cB38EA3Xr7uN9BGRbdZfm/G9aEjqBmZOm0QarOfD4Z618nDgT/8HrIkgn4Gbh/J5CRBZ axz4aqH+Qwv1xCMRv95G7U9ghxI4CxMQnJFuLIlrWhBfI5XtQCyTaKY9ZsqBXYaWZMx4 gQnThZSriy44dHGKh46jMiLdMVee2Ji/R2Op51hcMey6wJI6DQv6z4coI/r2Gw06R0Qa I2D6ZY9ErulPZPYLlM6z1D94ZT7vLa+Xq/PY2zyQ/n0QCxyf/CcjOkorbmyRwMiLywmJ EwHw== X-Gm-Message-State: ABUngvfjKPSB96o2f4gaT4KOm1QblWaFZsuXuNxfyLAnz2zfBZzBQ2VCMmHIs3YlMzNCTA== X-Received: by 10.194.142.116 with SMTP id rv20mr2073989wjb.184.1477078648614; Fri, 21 Oct 2016 12:37:28 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:56b5:0:ac27:b86c:7764:9429]) by smtp.gmail.com with ESMTPSA id q134sm5756630wme.3.2016.10.21.12.37.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Oct 2016 12:37:27 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Fri, 21 Oct 2016 21:36:55 +0200 Message-Id: <20161021193700.22100-14-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161021193700.22100-1-daniel.vetter@ffwll.ch> References: <20161021193700.22100-1-daniel.vetter@ffwll.ch> Cc: Daniel Vetter , Intel Graphics Development Subject: [Intel-gfx] [PATCH 13/18] dim: use get_maintainers.pl in dim fixes X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP For even more Cc! Result is sometimes a bit excessive and will need some trimming sometimes. v2: Don't sort, since that makes a mess of the list. Signed-off-by: Daniel Vetter --- dim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dim b/dim index 91aa99f230e7..8120d159cea8 100755 --- a/dim +++ b/dim @@ -1242,10 +1242,12 @@ function dim_fixes echo "Fixes: $(dim_cite $sha1)" + ( git show --no-patch $sha1 | \ sed -e 's/\(Reviewed\|Acked\|Reported\|Signed\)[a-zA-Z-]*-by:/Cc:/' | \ - sed -e 's/^ C[Cc]: */Cc: /' | grep '^Cc: ' | \ - sort | uniq + sed -e 's/^ C[Cc]: */Cc: /' | grep '^Cc: ' + git show $sha1 | scripts/get_maintainer.pl --email --norolestats | sed -e "s/^/Cc: /" + ) | awk '!x[$0]++' local tag=$(git tag --contains $1 | grep ^v | sort -V | head -n 1) if [[ -n "$tag" ]]; then