.gitattributes for [diff "text"]

[diff "text"]
        xfuncname = ^(\".*)
[diff "perl"]
        xfuncname = ^(\".*)
[diff "html"]
        xfuncname = ^<h[12]>(.+)</h[12]>
Apichat Suzanne, Ophuls