Skip to content

Commit

Permalink
Dev: add .gitattributes file to force all line endings to LF
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesherov committed Jan 3, 2013
1 parent da01fb6 commit cc5ac08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
* eol=lf

6 comments on commit cc5ac08

@jzaefferer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm now getting warnings about warning: CRLF will be replaced by LF in demos/autocomplete/images/jquery_32x32.png..

@jzaefferer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Along with a bunch of files, that I can't reset, showing up as modified.

@jzaefferer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikesherov why was this added if it causes problems like the ones I mentioned above?

@scottgonzalez can you confirm that you're seeing the same? Or is it just me?

@scottgonzalez
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not having that problem. See 68e5ebc for the only files that it changed for me.

@jzaefferer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just did a fresh clone, gives me this crap: http://bassistance.de/i/592772.png

@mikesherov
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jzaefferer, it shouldn't be causing problems. Its utility is to avoid spurious line changes when a windows editor modifies a file and inserts CRLF. I asked @scottgonzalez if it was OK before landing. Not sure why it would try to change a jpg file though, that's curious.

@jzaefferer, can you check that your editor is using LF only?

Please sign in to comment.