[Intel-gfx] [maintainer-tools PATCH 3/3] dim: have dim fixes print Cc's from commit being fixed first
Jani Nikula
jani.nikula at intel.com
Fri Sep 30 14:13:11 UTC 2016
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 <jani.nikula at intel.com>
---
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
--
2.1.4
More information about the Intel-gfx
mailing list