Are we positive that we need .gitattributes at all? Is there a reason that lines with LF would be converted to CRLF on local machine?
The way I see it, every line ending should be preserved as is, since Leo doesn't require CRLF on windows, and doesn't benefit from those either. On Fri, Feb 14, 2014 at 4:57 PM, Jacob Peck <gatesph...@gmail.com> wrote: > On 2/14/2014 9:48 AM, Edward K. Ream wrote: > >> I am considering adding a .gitattributes file at the top level of the >> repo containing:: text eol=lf >> >> If I am not mistaken, this forces all line endings to be Linux line >> endings. Without this setting, reStructuredText and/or Sphinx has trouble >> with .rst files. >> >> However when I did "git add ." I got the following bizarre warnings: >> >> warning: LF will be replaced by CRLF in leo/doc/LeoDocs.leo. >> The file will have its original line endings in your working directory. >> warning: LF will be replaced by CRLF in leo/doc/html/conf.py. >> The file will have its original line endings in your working directory. >> warning: LF will be replaced by CRLF in leo/doc/leoProjects.txt. >> The file will have its original line endings in your working directory. >> warning: LF will be replaced by CRLF in leo/doc/leoToDo.txt. >> The file will have its original line endings in your working directory. >> >> These messages seem exactly backwards. >> >> There are also some not-very-clear warnings at the end of this page: >> https://help.github.com/articles/dealing-with-line-endings. >> >> I haven't committed or pushed anything. Any advice about what to do next? >> >> Edward >> -- >> > According to this SO answer, you're fine: http://stackoverflow.com/a/ > 20653073 > > What that setting does is converts all CRLF characters to LF characters > during the commit -- so in the repo they will always be LF. On > checkout/clone/whatever, they'll be automatically converted to the > appropriate ending for the platform you're on. > > The repo will *always* contain LF characters, regardless of the > line-endings the committers use. > > That is, if I'm reading it right... > > -->Jake > > > -- > You received this message because you are subscribed to the Google Groups > "leo-editor" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to leo-editor+unsubscr...@googlegroups.com. > To post to this group, send email to leo-editor@googlegroups.com. > Visit this group at http://groups.google.com/group/leo-editor. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.