Re: appending a pattern to the default "diff.cpp.xfuncname"
- From
- Laszlo Ersek <lersek@redhat.com>
- Date
- Aug 3, 2016, 18:12 UTC
- Message-ID
- <03265a89-fbe8-653a-fb55-ca436c48e39d@redhat.com>
- In-Reply-To
- <20160803180213.o7xpm4c4tw5rixmy@sigill.intra.peff.net>
On 08/03/16 20:02, Jeff King wrote:
Show 14 quoted lines
> On Wed, Aug 03, 2016 at 12:16:14PM +0200, Laszlo Ersek wrote: > >> I've used diff.<TYPE>.xfuncname with great success for file <TYPE>s that >> I defined myself. However, now I would like to append an extra pattern >> to the TYPE=cpp case (for which git has builtin patterns). Is there an >> easy way to do this? >> >> I figured I could open-code the builtin patterns from "userdiff.c", and >> then append my new pattern to those, but it looks kinda gross :) > > Unfortunately, no, the config system has no notion of "append to this > value". So you are stuck with extracting the builtin value (which > annoyingly, you cannot even get without looking at the source code!), > and repeating it in your config file.
Thank you for confirming! Laszlo