From patchwork Tue May 10 08:50:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joonas Lahtinen X-Patchwork-Id: 9055521 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AADECBF29F for ; Tue, 10 May 2016 08:49:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DCCF620149 for ; Tue, 10 May 2016 08:49:10 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id D7B5C20142 for ; Tue, 10 May 2016 08:49:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 63F6C6E5DB; Tue, 10 May 2016 08:49:08 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 510C46E5DB for ; Tue, 10 May 2016 08:49:07 +0000 (UTC) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 10 May 2016 01:49:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,604,1455004800"; d="scan'208";a="100379257" Received: from jlahtine-desk.ger.corp.intel.com ([10.252.27.149]) by fmsmga004.fm.intel.com with ESMTP; 10 May 2016 01:49:05 -0700 From: Joonas Lahtinen To: Intel graphics driver community testing & development Date: Tue, 10 May 2016 11:50:48 +0300 Message-Id: <1462870248-10425-1-git-send-email-joonas.lahtinen@linux.intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <878tzib961.fsf@intel.com> References: <878tzib961.fsf@intel.com> Cc: Jani Nikula , Daniel Vetter Subject: [Intel-gfx] [PATCH maintainer-tools v3] dim: Resist committing patches that modify files outside of i915 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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) v3: - Do not use HEAD but $commit (Jani) Cc: Daniel Vetter Cc: Jani Nikula Signed-off-by: Joonas Lahtinen --- 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