From patchwork Fri Sep 30 14:13:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 9358333 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 E5C096075E for ; Fri, 30 Sep 2016 14:15:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4E6E2A054 for ; Fri, 30 Sep 2016 14:15:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 998E12A055; Fri, 30 Sep 2016 14:15:38 +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.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham 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 1B22C2A057 for ; Fri, 30 Sep 2016 14:15:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 516366EA48; Fri, 30 Sep 2016 14:15:33 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id CA4796EA48 for ; Fri, 30 Sep 2016 14:15:31 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 30 Sep 2016 07:15:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.31,272,1473145200"; d="scan'208"; a="1038658868" Received: from jnikula-mobl.fi.intel.com (HELO localhost) ([10.237.72.162]) by orsmga001.jf.intel.com with ESMTP; 30 Sep 2016 07:15:29 -0700 From: Jani Nikula To: intel-gfx@lists.freedesktop.org Date: Fri, 30 Sep 2016 17:13:11 +0300 Message-Id: <1475244791-20915-3-git-send-email-jani.nikula@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1475244791-20915-1-git-send-email-jani.nikula@intel.com> References: <1475244791-20915-1-git-send-email-jani.nikula@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Cc: Jani Nikula Subject: [Intel-gfx] [maintainer-tools PATCH 3/3] dim: have dim fixes print Cc's from commit being fixed first 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 The user can eyeball the list of Cc's while git churns through history to figure out whether the fix belongs in stable or not. Signed-off-by: Jani Nikula --- dim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dim b/dim index 2b35e0ef69c9..126d79aea624 100755 --- a/dim +++ b/dim @@ -1185,6 +1185,11 @@ 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 + local tag=$(git tag --contains $1 | grep ^v | sort -V | head -n 1) if [[ -n "$tag" ]]; then if echo "$tag" | grep -e "-rc" &> /dev/null ; then @@ -1205,11 +1210,6 @@ function dim_fixes fi fi fi - - 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 } function dim_help