From: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
To: <git@vger.kernel.org>
Cc: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Subject: [PATCH 2/2] Use specific diff rules for repo files
Date: Mon, 1 Aug 2011 12:37:49 +0200 [thread overview]
Message-ID: <1312195069-10782-3-git-send-email-giuseppe.bilotta@gmail.com> (raw)
In-Reply-To: <1312195069-10782-1-git-send-email-giuseppe.bilotta@gmail.com>
Let's eat our own dogfood. (Also, this makes word diff much nicer on
git's own repo.)
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
---
.gitattributes | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.gitattributes b/.gitattributes
index 5e98806..16930e6 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,3 +1,4 @@
* whitespace=!indent,trail,space
-*.[ch] whitespace=indent,trail,space
-*.sh whitespace=indent,trail,space
+*.[ch] whitespace=indent,trail,space diff=cpp
+*.sh whitespace=indent,trail,space diff=shell
+*.perl diff=perl
--
1.7.6.451.gcb935.dirty
prev parent reply other threads:[~2011-08-01 10:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-01 10:37 [PATCH 0/2] Minor userdiff stuff Giuseppe Bilotta
2011-08-01 10:37 ` [PATCH 1/2] Diff patterns for POSIX shells Giuseppe Bilotta
2011-08-02 17:51 ` Junio C Hamano
2011-08-02 18:52 ` Giuseppe Bilotta
2011-08-03 5:26 ` [PATCH 1bis/2] " Giuseppe Bilotta
2011-08-03 9:32 ` Jeff King
2011-08-03 10:12 ` Giuseppe Bilotta
2011-08-03 18:53 ` Junio C Hamano
2011-08-01 10:37 ` Giuseppe Bilotta [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1312195069-10782-3-git-send-email-giuseppe.bilotta@gmail.com \
--to=giuseppe.bilotta@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).