From: Yuanhan Liu Date: Thu, 6 Apr 2017 06:33:41 +0000 (+0800) Subject: devtools: make commits with stable tag outstanding X-Git-Tag: spdx-start~3697 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=87efbcc7ab599217cadea7379cc7b63580a88421;p=dpdk.git devtools: make commits with stable tag outstanding 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 --- diff --git a/devtools/git-log-fixes.sh b/devtools/git-log-fixes.sh index d590735bee..3bf412e75a 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 presence +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