Improve ‘git diff’ output if desired

* .gitattributes: New file.
This commit is contained in:
Paul Eggert 2024-08-28 21:15:35 -07:00
parent 248ef134f8
commit da259855ca

7
.gitattributes vendored Normal file
View File

@ -0,0 +1,7 @@
# Run this to make 'git diff' on texinfo files give nicer hunk context:
# git config diff.texinfo.funcname '^@node[ ][ ]*\\([^,][^,]*\\)'
*.texi* diff=texinfo
# Run this to make 'git diff' on .m4 files give nicer hunk context:
# git config diff.m4.xfuncname '^((AC_DEFUN|m4_define)[^,)]*)'
*.m4 diff=m4