.gitattributes: Add new file for ergonomics.

Based on gnulib's.
This commit is contained in:
G. Branden Robinson 2024-01-28 21:41:57 -06:00
parent d52d3d2918
commit 2891826b45

11
.gitattributes vendored Normal file
View File

@ -0,0 +1,11 @@
# 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
# Run this to make 'git diff' on tmac files give nicer hunk context:
# git config diff.roff.xfuncname '^['.][ ]*de1*[ ]*.*$'
*.tmac diff=roff
# Run this to make 'git diff' on texinfo files give nicer hunk context:
# git config diff.texinfo.funcname '^@node[ ][ ]*\\([^,][^,]*\\)'
*.texi* diff=texinfo