Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Nov 27, 2009
1 parent a767826 commit 1879e8cbeef6984495ee84f482900defda0dc3f4
Showing with 1 addition and 0 deletions.
  1. +1 −0 .gitattributes
@@ -0,0 +1 @@
* crlf=input

This comment has been minimized.

Copy link
@snaewe

snaewe 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.

This comment has been minimized.

Copy link
@jeresig

jeresig Sep 21, 2010

Author Member

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

This comment has been minimized.

Copy link
@snaewe

snaewe 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.

This comment has been minimized.

Copy link
@jeresig

jeresig Sep 21, 2010

Author Member

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/

This comment has been minimized.

Copy link
@snaewe

snaewe Sep 21, 2010

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

0 comments on commit 1879e8c

Please sign in to comment.
You can’t perform that action at this time.