If committing to drm-intel-next-queued branch, require the committer to be aware that they are committing outside of drm/i915 maintenance scope. v2: - Do not use warn_or_fail (Jani) - Only apply to drm-intel-next-queued branch (Daniel) Cc: Daniel Vetter <daniel.vetter@xxxxxxxx> Cc: Jani Nikula <jani.nikula@xxxxxxxxx> Signed-off-by: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx> --- dim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dim b/dim index d9c1be5..cbdae85 100755 --- a/dim +++ b/dim @@ -691,6 +691,17 @@ function checkpatch_commit if test "$bug_lines" -eq 1; then warn_or_fail "New BUG macro added" fi + + if [ "$branch" = "drm-intel-next-queued" ]; then + local non_i915_files=$(git diff-tree --no-commit-id --name-only -r HEAD | \ + grep -v "^\(drivers/gpu/drm/i915/\|include/drm/i915\|include/uapi/drm/i915\)") + + if [ -n "$non_i915_files" ]; then + echo -e "The following files are outside of i915 maintenance scope:\n" + echo "$non_i915_files" + echo -e "\nConfirm you have appropriate Acked-by and Reviewed-by for above files." + fi + fi } # turn $1 in to a git commit range -- 2.5.5 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx