From: Junio C Hamano Date: Fri, 23 Sep 2011 19:40:51 GMT Subject: Re: How to use git attributes to configure server-side checks? Message-ID: <7vobybt5bw.fsf@alter.siamese.dyndns.org> In-Reply-To: <20110923193341.GA26820@sigill.intra.peff.net> Jeff King writes: > We do some of this already. For example, textconv will look up each side > based on its individual filename. But the funcname code, for example > does this ("one" is the "from" side of the diff, "two" is the "to" > side): > > pe = diff_funcname_pattern(one); > if (!pe) > pe = diff_funcname_pattern(two); What text would we see on the actual hunk header line? I had an impression that we always take from the preimage. I might be wrong, but if that is indeed the case, shouldn't we be ignoring the attribute tacked on to the postimage side altogether?