Re: git and line endings
Robin Dunn <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
Werner wrote: > Hi, > > What settings should one have for line endings in git and ones IDE? > > I noticed that some files (Phoenix) have "LF" some have "CRLF" > > Using WingIDE, should I just set the project settings as: > Preferred Line Ending - Use Preference Settings (which is "CRLF" by > default as I am on Windows) > Line Ending Policy - Ignore conflicts > > Or should I use: > > git config --global core.autocrlf true > > https://help.github.com/articles/dealing-with-line-endings/ > > Or is there a better/saner way of setting things up? You might want to try setting autocrlf to "input" as that will keep them in whatever format they have in the repository. There are a few files in the wxWidgets repo (but on any in Phoenix that I recall) that must always be in CRLF mode. But if you are using a smart editor that can handle either style then it doesn't matter too much what format the rest of the source files are using. IIRC, the "input" style also intelligently converts newly added text files to LF when they are committed the first time. -- Robin Dunn Software Craftsman http://wxPython.org -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.