Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update all CRLF line endings to LF #738

Merged
merged 1 commit into from
+3,951 −3,951

3 participants

Daniel Dunér Ashley Perrin Philipp Abraham
Daniel Dunér

All line endings in a git project should be Unix style (used on Linux, MacOSX and in good IDEs):
Line Feed (LF), also known as \n

Windows style line endings create problems:
Carrige Return + Line Feed (CRLF), also known as \r\n

For information on how to automatically handle this on each computer, see:
http://help.github.com/line-endings/

Daniel Dunér danielduner Update all CRLF line endings to LF
All line endings in a git project should be Unix style:
   Line Feed (LF), also known as \n

Windows style line endings are not allowed:
   Carrige Return + Line Feed (CRLF), also known as \r\n

For more information on how to automatically handle this, see:
  http://help.github.com/line-endings/
4fcad75
Ashley Perrin

I was actually curious about both this and whether there was a project-wide preference for indentation and other style issues. I've seen a few files mixing spaces and tabs of various sizes and it makes them a bit harder to read. A page on the Wiki might be a good idea.

Daniel Dunér

Yes, you are right. The unofficial standard for indentation is Eclipse's standard, using tabs (and in general 1TBS http://en.wikipedia.org/wiki/Indentation_style#Variant:_1TBS), but we have yet to put it in writing.

When it comes to git, LF is always preferred over CRLF. But it would be a good idea to put that in the wiki as well.

Would you mind creating an issue about this?

Philipp Abraham master-lincoln merged commit 91b71d7 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 4, 2012
  1. Daniel Dunér

    Update all CRLF line endings to LF

    danielduner authored
    All line endings in a git project should be Unix style:
       Line Feed (LF), also known as \n
    
    Windows style line endings are not allowed:
       Carrige Return + Line Feed (CRLF), also known as \r\n
    
    For more information on how to automatically handle this, see:
      http://help.github.com/line-endings/
Something went wrong with that request. Please try again.