From: Andreas Ericsson Date: Tue, 13 Nov 2007 10:07:31 GMT Subject: Re: [PATCH] diffcore: Allow users to decide what funcname to use Message-ID: <47397763.6080307@op5.se> In-Reply-To: Jakub Narebski wrote: > Andreas Ericsson wrote: > >> Git can be smarter than that, and imo it should. This >> patch lets the diffcore grok a new configuration variable, >> "diff.funcnames", which can be set to "new", "old", or a >> boolean value, which will cause it to be "old" (for 'true') >> and 'none' (for 'false'). > > Wouldn't it be better to use existing 'diff driver' infrastructure > for this? See "Defining a custom hunk-header" section in > gitattributes(5). > > On the other hand... no. > It's impossible to do that, since that driver will only ever be fed the "old" file with the old code. I'm guessing you noticed that yourself, so just explaining in case anyone else wonders. -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231