changeset 11830:2e5821b6f988

doc: improve git diff of texinfo files * .gitattributes: Add rule for *.texi files, with hint on how to use it. Copied from m4, and based on a report by Bruno Haible. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Thu, 13 Aug 2009 07:15:28 -0600
parents 7086f57021b2
children 60a86ea77948
files .gitattributes ChangeLog
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,1 +1,6 @@
+# See 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
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-08-14  Eric Blake  <ebb9@byu.net>
+
+	doc: improve git diff of texinfo files
+	* .gitattributes: Add rule for *.texi files, with hint on how to
+	use it.
+	Copied from m4, and based on a report by Bruno Haible.
+
 2009-08-14  Bruno Haible  <bruno@clisp.org>
 
 	Disable multithread support by default on Cygwin 1.5.x for real.