diff mbox

[maintainer-tools,3/3] dim: have dim fixes print Cc's from commit being fixed first

Message ID 1475244791-20915-3-git-send-email-jani.nikula@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jani Nikula Sept. 30, 2016, 2:13 p.m. UTC
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@intel.com>
---
 dim | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox

Patch

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