diff mbox

[13/18] dim: use get_maintainers.pl in dim fixes

Message ID 20161021193700.22100-14-daniel.vetter@ffwll.ch (mailing list archive)
State New, archived
Headers show

Commit Message

Daniel Vetter Oct. 21, 2016, 7:36 p.m. UTC
For even more Cc! Result is sometimes a bit excessive and will
need some trimming sometimes.

v2: Don't sort, since that makes a mess of the list.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 dim | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/dim b/dim
index 91aa99f230e7..8120d159cea8 100755
--- a/dim
+++ b/dim
@@ -1242,10 +1242,12 @@  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
+		sed -e 's/^    C[Cc]: */Cc: /' | grep '^Cc: '
+	git show $sha1 | scripts/get_maintainer.pl  --email --norolestats | sed -e "s/^/Cc: /"
+	) | awk '!x[$0]++'
 
 	local tag=$(git tag --contains $1 | grep ^v | sort -V | head -n 1)
 	if [[ -n "$tag" ]]; then