From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 9E559CFA4 for ; Thu, 6 Apr 2017 08:36:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491460577; x=1522996577; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Kzbhm/SYJsdnndWfA5HwNSN0hHtpM1SlSVCTXFxflZU=; b=haf+0JTcb8diH+G6YfZBS9sgzULMhawLQTLr/tbvrADZ1OCIORaWY/aH ek3bwpcFLq3/POjyTHMP4QWeM73zCA==; Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Apr 2017 23:36:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,283,1488873600"; d="scan'208";a="85376169" Received: from yliu-dev.sh.intel.com ([10.239.67.162]) by fmsmga006.fm.intel.com with ESMTP; 05 Apr 2017 23:36:15 -0700 From: Yuanhan Liu To: dev@dpdk.org Cc: Thomas Monjalon , Yuanhan Liu Date: Thu, 6 Apr 2017 14:33:41 +0800 Message-Id: <1491460421-6597-1-git-send-email-yuanhan.liu@linux.intel.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1487818172-12910-1-git-send-email-yuanhan.liu@linux.intel.com> References: <1487818172-12910-1-git-send-email-yuanhan.liu@linux.intel.com> Subject: [dpdk-dev] [PATCH v2] devtools: make commits with stable tag outstanding X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2017 06:36:18 -0000 So that, as a stable maintainer while picking commits to a stable release, I could pay less attention to those have it and pay more attention to those don't have it. Signed-off-by: Yuanhan Liu --- v2: - introduce a function stable_tag for that - fix regexp --- devtools/git-log-fixes.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/devtools/git-log-fixes.sh b/devtools/git-log-fixes.sh index d590735..359fbda 100755 --- a/devtools/git-log-fixes.sh +++ b/devtools/git-log-fixes.sh @@ -103,6 +103,16 @@ origin_version () # ... done | sort -uV | head -n1 } +# print a marker for stable tag presense +stable_tag () # +{ + if git log --format='%b' -1 $1 | grep -qi '^Cc: *stable@dpdk.org' ; then + echo 'S' + else + echo '-' + fi +} + git log --oneline --reverse $range | while read id headline ; do origins=$(origin_filter $id) @@ -116,5 +126,6 @@ while read id headline ; do else origver='N/A' fi - printf '%s %7s %s (%s)\n' $version $id "$headline" "$origver" + stable=$(stable_tag $id) + printf '%s %7s %s %s (%s)\n' $version $id $stable "$headline" "$origver" done -- 1.9.0