stacey icon indicating copy to clipboard operation
stacey copied to clipboard

Line endings

Open kvakes opened this issue 13 years ago • 2 comments

I've stumbled upon some php files in the /app folder that seem to have CRLF line endings and my git repo keeps telling me that it's wrong. But we can deal with it: https://help.github.com/articles/dealing-with-line-endings

I think we could add .gitattribute to the repo.

kvakes avatar Jun 08 '12 02:06 kvakes

So, it sounds like text=auto sounds like the best bet?

kolber avatar Jun 12 '12 04:06 kolber

I'd say that we need to "normalize" the repo first. Seems like a big deal. We're on Macs, where default line ending is LF. Since Stacey will eventually run on a Unix server, all line endings should be LF. I suppose few folks are on windows, so if we do the following:

  1. "normalize" the repo
  2. set .gitattributes to
* text=auto

*.php text
*.xml text
*.html text
*.css text
*.scss text
*.js text
*.coffee text
*.yml text
*.md text

*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary

Or, let me test it first on my fork.

kvakes avatar Jun 13 '12 05:06 kvakes