From patchwork Wed Jan 15 13:17:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw \(lists\)" X-Patchwork-Id: 182842 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp6876283ile; Wed, 15 Jan 2020 05:17:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwsIr51V8Dg0rBF4zt/e9aZAVAq2w8IKXXzym2afMdopZX7ywPYVeXLRIO5ts7RqOLB6MhP X-Received: by 2002:a9d:24e8:: with SMTP id z95mr2666310ota.5.1579094257932; Wed, 15 Jan 2020 05:17:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579094257; cv=none; d=google.com; s=arc-20160816; b=toR4I+/RrFulzoO05lWGy7+PRz0iRDxeexR1XNEbNgDFLmxaHXtLzgIy4w+mBns2QX E9uXpkg8t91nlmenvYERL9FaLAXjP+YonZn+5I/aBSncCsILKXNWnrq2+dUCFvb4Ka6l UQ8mpXHk5nLrhye0phlsVm3xi4bu9nuWq98pOUXXQKyfMcIFOchUHFXBy7KimN9fjkLC aCneiJfKiKUAlUtpsj6LS6t5fEDxAbmAgRg/XSs5cA9mi3ZLBJBsb4Kb9hW0yegIYus3 NnmlkqZsmkEbWn/lVu8PjINV4jV1SIKgrxtny0YyR4cAk23ebTkdfi5jqPMvVGw+7+u1 J44A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:date:message-id:subject:from:to :delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=NTMMMbvmTVVFzo+d5AxxmASyHEFpDFEl2+UOoW95yds=; b=lc/unpzQ71vwWZBEP3wbXD09TD7RjNwg9dAEKd0lekp+47AS00QVzRcfc2fy4wnEr6 KgL2BLUGA8Q7GP0ck/CEbL/5kxP+7WvBV5fQcBLclpV1mI1TeNRXT9323woqTeEu9RC8 Rh0AeHWRsYs0Ao03p9vwmrkD+z/AZ89vLkXGQ+jlM/+8dVgfKfqNTp29Un6nYWeJZ7dR YKU+ykYQhbovg/SigFI9ox/1HpGaGBesvhlN4+vM/EyPQmZq2ssFZNTo8ut5ayTWJF9c Yq698JdoeuNDaGojBLYK/eM6D1ZYZGzjNzoUIcWlCO9NrHyGnuOqhFvtpzKeLyrzh0c0 v/xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=HJsu9NOC; spf=pass (google.com: domain of gcc-patches-return-517437-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-517437-patch=linaro.org@gcc.gnu.org" Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id h9si10350493otb.49.2020.01.15.05.17.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jan 2020 05:17:37 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-517437-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=HJsu9NOC; spf=pass (google.com: domain of gcc-patches-return-517437-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-517437-patch=linaro.org@gcc.gnu.org" DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=k2IaRtgczebVFCCKgwRLLLEXssVuTA9nxewPxYADQRqqLKAZUm 9+KCvH+p2Yisem4nV+V9t+Sbqgsg/U3CbW/2SfyD26KNh2SW1zLZvtosIY74zoPY vNr6hahLcx/8DXIaXFEySS9kEs/Kuga3dMQ9b1oZgp8h/Gavi8Xq/gut8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=0qK5qqrao3DH7Miic1jpV0yvvtQ=; b=HJsu9NOCqvcoxSubucaU Q/FVPhnXICNrtipg92LUN9hgQNnl+UEi6rjSwx3s019TWpNJZu1y39gjQTt5VDXU iFXcPKAnHFe+bhBfuOKxG6Rp7MjZGGl+Egt5e9HqnGlplhHqA/scJ9oQ2vHgM7OQ T+kiO7uqQ2yG45HCbo76DjM= Received: (qmail 26266 invoked by alias); 15 Jan 2020 13:17:26 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 25544 invoked by uid 89); 15 Jan 2020 13:17:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, MEDICAL_SUBJECT, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.110.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Jan 2020 13:17:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8995131B; Wed, 15 Jan 2020 05:17:14 -0800 (PST) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.78.81]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EC9BE3F534; Wed, 15 Jan 2020 05:17:13 -0800 (PST) To: "gcc-patches@gcc.gnu.org" From: "Richard Earnshaw (lists)" Subject: Add attribute to match *.md and *.pd to the git diff hook Message-ID: <27ef914f-0968-62e4-0c42-aadf5bfb179b@arm.com> Date: Wed, 15 Jan 2020 13:17:12 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 The gcc-git-customization script sets up a diff hook to match (define as a function name hook so that diff -p style annotations will match a pattern name. This patch does the other half of this in the gcc configuration by matching *.pd and *.md to this new rule * .gitattributes: Use the md diff rule for *.md and *.pd. OK? diff --git a/.gitattributes b/.gitattributes index 13debfd97e9..4d6c031112c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,3 +4,9 @@ *.[cCh] whitespace=indent-with-non-tab,space-before-tab,trailing-space *.cc whitespace=indent-with-non-tab,space-before-tab,trailing-space ChangeLog whitespace=indent-with-non-tab,space-before-tab,trailing-space + +# match '(define_' as a function name for diff headers. +# To use the following hook, you'll need to run: +# git config [--global] diff.md.xfuncname '\(define.*$' +# contrib/gcc-git-customization.sh will do this for you. +*.[mp]d diff=md