[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] * .gitattributes: Better diff output for texinfo sources.
From: |
Jim Meyering |
Subject: |
[PATCH] * .gitattributes: Better diff output for texinfo sources. |
Date: |
Fri, 08 Aug 2008 22:15:10 +0200 |
FYI, git diff didn't produce the "funcname" style string
on each @@ line that I've come to expect in diffs of other
languages like C and ruby. With this .gitattributes file
and following the advice in the comment, now it does:
>From 1d8a06957b54a4fd04da2712eca44e03534bd50d Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 8 Aug 2008 12:47:34 +0200
Subject: [PATCH] * .gitattributes: Better diff output for texinfo sources.
---
.gitattributes | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
create mode 100644 .gitattributes
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..6093269
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,7 @@
+*.texi diff=texinfo
+
+# Put something like the following e.g., in your ~/.gitconfig file
+# # Include proper "function name" string in diffs of texinfo.
+# # Derived from the regexp in emacs' lisp/add-log.el.
+# [diff "texinfo"]
+# funcname = "address@hidden \t]\\+\\([^,]\\+\\)"
--
1.6.0.rc2.2.g59bf
- [PATCH] * .gitattributes: Better diff output for texinfo sources.,
Jim Meyering <=