[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 02/03: .gitattributes: Add new file for ergonomics.
|
From: |
G. Branden Robinson |
|
Subject: |
[groff] 02/03: .gitattributes: Add new file for ergonomics. |
|
Date: |
Sun, 28 Jan 2024 23:01:10 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 2891826b45c0889f8f6007a4d4f1ef13d49b056e
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Jan 28 21:41:57 2024 -0600
.gitattributes: Add new file for ergonomics.
Based on gnulib's.
---
.gitattributes | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..13098684d
--- /dev/null
+++ b/.gitattributes
@@ -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
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 02/03: .gitattributes: Add new file for ergonomics.,
G. Branden Robinson <=