Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 1879e8cbeef6984495ee84f482900defda0dc3f4 1 parent a767826
John Resig jeresig authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  .gitattributes
1  .gitattributes
View
@@ -0,0 +1 @@
+* crlf=input
Stefan Näwe
snaewe added a note

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.

John Resig
jeresig added a note

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

Stefan Näwe
snaewe added a note

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.

John Resig
jeresig added a note

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/

Stefan Näwe
snaewe added a note

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
Stefan Näwe

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.

John Resig

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

Stefan Näwe

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.

John Resig

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/

Stefan Näwe

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

Please sign in to comment.
Something went wrong with that request. Please try again.