From: Eric Sunshine Date: Mon, 15 Feb 2021 03:16:28 GMT Subject: Re: [PATCH 13/20] userdiff tests + docs: document & test "diff..x?funcname" Message-ID: In-Reply-To: <20210215005236.11313-14-avarab@gmail.com> On Sun, Feb 14, 2021 at 7:56 PM Ævar Arnfjörð Bjarmason wrote: > Add the missing documentation for "diff..funcname" and test > for how it and "diff..xfuncname" interact. > [...] > Signed-off-by: Ævar Arnfjörð Bjarmason > --- > diff --git a/Documentation/config/diff.txt b/Documentation/config/diff.txt > @@ -153,10 +153,22 @@ diff..command:: > +diff..funcname:: > diff..xfuncname:: > The regular expression that the diff driver should use to > recognize the hunk header. A built-in pattern may also be used. > See linkgit:gitattributes[5] for details. > ++ > +When provided as `diff..funcname` the regular expression is > +interpreted as a basic regular expression, with This would be easier to understand: s/, with/. With/ > +`diff..xfuncname` it's interpreted as an extended regular > +expression. > ++ > + > +The `*.funcname` and `*.xfuncname` variables behave as if though they > +were one configuration variable for the purposes of what value > +eventually gets used. Setting `*.funcname` will override an earlier > +`*.xfuncname` and vice-versa. Extra blank line before this paragraph?