git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] Use specific diff rules for repo files

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Aug 1, 2011, 10:37 UTC
Message-ID
<1312195069-10782-3-git-send-email-giuseppe.bilotta@gmail.com>
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
Previous: Junio C Hamano
Message 9 of 9 in “Minor userdiff stuff”
  1. 0/2 Minor userdiff stuffGiuseppe Bilotta, Aug 1, 2011
  2. 1/2 Diff patterns for POSIX shellsGiuseppe Bilotta, Aug 1, 2011
  3. Junio C HamanoAug 2, 2011
  4. Giuseppe BilottaAug 2, 2011
  5. Diff patterns for POSIX shellsGiuseppe Bilotta, Aug 3, 2011
  6. Jeff KingAug 3, 2011
  7. Giuseppe BilottaAug 3, 2011
  8. Junio C HamanoAug 3, 2011
  9. 2/2 Use specific diff rules for repo filesGiuseppe Bilotta, Aug 1, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.