Permalink
Browse files

add .gitattributes for better diffs

  • Loading branch information...
Reini Urban
Reini Urban committed May 24, 2012
1 parent 177923b commit ddcc620713a3dccb2a1b1cd101396d69ed4efc12
Showing with 2 additions and 0 deletions.
  1. +2 −0 .gitattributes
View
@@ -0,0 +1,2 @@
+*.txt diff=text
+*.html diff=html

1 comment on commit ddcc620

Owner

rurban commented on ddcc620 May 24, 2012

.git/config:
[diff "text"]
xfuncname = ^(".*)
[diff "html"]
xfuncname = ^<h[12]>(.+)</h[12]>

Please sign in to comment.