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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux