From 228cc630fb80dab5e8b574af0c313585806e9ac0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 17 Feb 2023 23:20:55 +0100 Subject: [PATCH] Improve 'git diff' of *.texi and *.m4 files. --- .gitattributes | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitattributes b/.gitattributes index ca4ea2772..82d6f8e9b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,10 @@ +# See gnulib/lib/git-merge-changelog.c for making this useful. 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