From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id AD6781FAF4 for ; Wed, 8 Feb 2017 18:45:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751441AbdBHSo5 (ORCPT ); Wed, 8 Feb 2017 13:44:57 -0500 Received: from mout.web.de ([212.227.15.14]:60205 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751148AbdBHSoz (ORCPT ); Wed, 8 Feb 2017 13:44:55 -0500 Received: from [192.168.178.36] ([79.197.218.233]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MXSg2-1cxzdw3Dks-00WaDp; Wed, 08 Feb 2017 19:37:50 +0100 Subject: Re: Trying to use xfuncname without success. To: Jack Adrian Zappa References: <271989d5-c383-0c0d-bfcb-f4118f9fa2aa@web.de> Cc: git-mailing-list From: =?UTF-8?Q?Ren=c3=a9_Scharfe?= Message-ID: <1aa20b4e-782f-a650-eab8-51218b838337@web.de> Date: Wed, 8 Feb 2017 19:37:49 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:Zj0uwOIvnY+lQUePU7r72lEtDZ46ZWEtTUCy/tC33ybDzx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org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Am 08.02.2017 um 18:11 schrieb Jack Adrian Zappa: > Thanks Rene, but you seem to have missed the point. NOTHING is > working. No matter what I put there, it doesn't seem to get matched. I'm not so sure about that. With your example I get this diff without setting diff.natvis.xfuncname: diff --git a/a.natvis b/a.natvis index 7f9bdf5..bc3c090 100644 --- a/a.natvis +++ b/a.natvis @@ -19,7 +19,7 @@ xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> - added_var + added_vars var2 Note the XML namespace in the hunk header. It's put there by the default rule because "xmlns" starts at the beginning of the line. Your diff has nothing there, which means the default rule is not used, i.e. your user-defined rule is in effect. Come to think of it, this line break in the middle of the AutoVisualizer tab might have been added by your email client unintentionally, so that we use different test files, which then of course results in different diffs. Is that the case? Anyway, if I run the following two commands: $ git config diff.natvis.xfuncname "^[\t ]*.gitattributes ... then I get this, both on Linux (git version 2.11.1) and on Windows (git version 2.11.1.windows.1): diff --git a/a.natvis b/a.natvis index 7f9bdf5..bc3c090 100644 --- a/a.natvis +++ b/a.natvis @@ -19,7 +19,7 @@ test - added_var + added_vars var2 > Just to be sure, I tested your regex and again it didn't work. At this point I'm out of ideas, sorry. :( The only way I was able to break it was due to mistyping the extension as "netvis" several times for some reason. René