[Intel-gfx] [PATCH] dim: Check for "Reviewed-by" on patches

Chris Wilson chris at chris-wilson.co.uk
Fri Nov 25 15:10:51 UTC 2016


---
 dim | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dim b/dim
index a1a821d..a9ba6b3 100755
--- a/dim
+++ b/dim
@@ -855,6 +855,9 @@ function checkpatch_commit
 
 	git --no-pager log --oneline -1 $commit
 	$cmd | scripts/checkpatch.pl -q --emacs --strict - || true
+	if ! git show --pretty=email -s $commit | grep -q -E '^(Reviewed-by|Acked-by):'; then
+		warn_or_fail "No Reviewed-by (or Acked-by) found"
+	fi
 
 	local bug_lines=$($cmd | grep -m 1 -B 1 '^\+.*\WBUG' | grep -c '^[+-].*\WBUG')
 	if test "$bug_lines" -eq 1; then
-- 
2.10.2



More information about the Intel-gfx mailing list