git: add diff patterns for Autotest and Texinfo

This commit is contained in:
Akim Demaille
2021-08-06 07:36:41 +02:00
parent 7e16706f7b
commit 85032e9630
2 changed files with 14 additions and 1 deletions

3
.gitattributes vendored
View File

@@ -1 +1,2 @@
*.at diff=autotest
*.texi diff=texinfo

12
.gitconfig Normal file
View File

@@ -0,0 +1,12 @@
# To use this gitconfig file, run
#
# git config --local include.path ../.gitconfig
#
# It adds an `[include]` section in .git/config.
# See <https://git-scm.com/docs/git-config#_includes>.
[diff "autotest"]
xfuncname = "^((m4_define|m4_pushdef|AT_SETUP).*)$"
[diff "texinfo"]
xfuncname = "^@node .*$"