Skip to content
Snippets Groups Projects
Commit 522e494f authored by Simona Vetter's avatar Simona Vetter Committed by Jani Nikula
Browse files

dim: use get_maintainers.pl in dim fixes


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. Use magic awk
command found through googling instead.

Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
[Jani: fix some indentation, add --pattern-depth 1 option]
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 783346cd
No related branches found
No related tags found
No related merge requests found
......@@ -1209,10 +1209,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
(
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: '
git show $sha1 | scripts/get_maintainer.pl --email --norolestats --pattern-depth 1 | sed -e "s/^/Cc: /"
) | awk '!x[$0]++'
local tag=$(git tag --contains $1 | grep ^v | sort -V | head -n 1)
if [[ -n "$tag" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment