On 25/08/16 20:13, Segher Boessenkool wrote: > On Thu, Aug 25, 2016 at 11:14:49AM +0100, Richard Earnshaw (lists) wrote: >> On 24/08/16 02:55, Segher Boessenkool wrote: >> >>> If you make a ".gitattributes" >>> somewhere in your tree (I have it in the gcc/ subdir), containing >>> >>> *.md diff=md >>> >>> and then in your git config (say, in .git/config in the GCC source tree) >>> you have >>> >>> [diff "md"] >>> xfuncname = "^\\(define.*$" >>> >>> then magic happens. >> >> Which sort of begs the question as to why nobody has proposed at least >> the top bit for GCC's toplevel .gitattributes file. > > Because it will do no good without the second part (which is more > complicated, so anyone doing that can easily do the first part), and > only the first part on its own does only hurt, not help. > > > Segher >
I disagree. The first part has to be in-tree (as I understand it) so having to keep that bit separate from any patches is a real pain. Yes you need both parts to make it work, but if the in-tree part is just there then it's not that hard to maintain the out-of-tree part yourself. R.