From fcfc2b3143d62958d21c49ab920f7cd9d936c40a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 17 Feb 2023 23:17:34 +0100 Subject: Improve 'git diff' of *.m4 files. * .gitattributes: Add rule for *.m4 files. --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.gitattributes') diff --git a/.gitattributes b/.gitattributes index 35a14df8a2..bad5997b57 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,3 +4,7 @@ ChangeLog merge=merge-changelog # 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 -- cgit v1.2.1