Permalink
Browse files

Add a gitattributes file for the migration.

When we start using git, we will be doing automatic line ending conversion
in a nice uniform way: everything is expected to have LFs, rather than the
current odd patchwork of svn:eol-style attributes.

This .gitattributes file configures git to normalise all line endings to LF
on checkin in files it believes are text (and its heuristics appear to be
very good). It also explicitly declares a number of file types to be binary
(which both disables line ending conversion for them and also prevents git
attempting to display a textual diff of them).

I have already normalised all files in the repository now to have the correct
line endings, so this should not do anything bad for anyone who is already
using git.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31104 a1c6a512-1295-4272-9138-f99709370657
  • Loading branch information...
1 parent 30e2a6d commit 8b9d6bdd1fe76228309102091cea56eaedf45a90 @tornewuff tornewuff committed Dec 1, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 .gitattributes
View
@@ -0,0 +1,16 @@
+* text=auto
+*.bmp binary
+*.cat -text
+*.dll binary
+*.fnt binary
+*.icns binary
+*.ico binary
+*.inf -text
+*.jpg binary
+*.pdf binary
+*.png binary
+*.svg binary
+*.sys binary
+*.vcproj -text
+*.wav binary
+*.xcf binary

0 comments on commit 8b9d6bd

Please sign in to comment.