Permalink
Browse files

Force endlines to be just LF (any CRLF is auto-converted to LF by Git).

  • Loading branch information...
1 parent a767826 commit 1879e8cbeef6984495ee84f482900defda0dc3f4 @jeresig jeresig committed Nov 27, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 .gitattributes
View
1 .gitattributes
@@ -0,0 +1 @@
+* crlf=input
@snaewe
snaewe added a line comment Sep 21, 2010

This breaks the .jar files that are checked in the 'build' directory. 'crlf=input' should only be set for text files, e.g. *.js, *.css, *.html.

@jeresig
jQuery Foundation member
jeresig added a line comment Sep 21, 2010

Can you expand on this problem? I haven't noticed any issues on my end so it's a bit hard to pinpoint.

@snaewe
snaewe added a line comment Sep 21, 2010

Well, you don't want to convert every 'CRLF' in binary files (e.g. jar) to 'LF' , do you?

After I clone jquery.git, 'git status' tells me:

#       modified:   build/google-compiler-20091218.jar
#       modified:   build/js.jar
#       modified:   test/data/text.php
#       modified:   test/delegatetest.html

which feels kind of wrong, IMHO.

@jeresig
jQuery Foundation member
jeresig added a line comment Sep 21, 2010

What OS are you on? I'm not seeing that on my end. Perhaps this might be of help:
http://help.github.com/dealing-with-lineendings/

@snaewe
snaewe added a line comment Sep 21, 2010

I tried that on Ubuntu 10.04 (x86_64) and Debian 5.0.6 (i686) with git 1.7.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

0 comments on commit 1879e8c

Please sign in to comment.