Re: How to use git attributes to configure server-side checks?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 23, 2011, 19:40 UTC
- Message-ID
- <7vobybt5bw.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20110923193341.GA26820@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
> 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?