fhsav / clock

The clock for Farmington High School.
http://fhsclock.com
Other
12 stars 2 forks source link

Consider using .gitattributes to regulate newline endings #329

Closed gluxon closed 11 years ago

gluxon commented 11 years ago

On Unix, newlines are denoted with LF (Line Feed or \n). On Windows, it is denoted with CRLF (carriage return + line feed or \r\n). A lot of windows and *nix editors change the line ending for a file to their respective line endings when saving. The problem with this is that Git sees these new line changes as additions and deletions, resulting in the entire files history being erased when the file is commited.

https://help.github.com/articles/dealing-with-line-endings

We should probably create a .gitattributes file to regulate everything to LF.

ethnt commented 11 years ago

Because I was a single developer developing for a single platform, handling line endings was a non-issue. I guess since you use Windows(?) I'll add a .gitattributes file.

gluxon commented 11 years ago

Windows is evil. Let's not talk about it.