Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cf-dev] Line endings

>From what I learned from several Stack Overflow posts, I think that it makes most sense to have Unix line endings (\n) in the repository (GitHub).
This way, people developing on Linux etc can simply keep the files as-is and people working on Windows can have Git translate between LF <-> CRLF during check-out/-in automatically.
This can be done on Windows by setting the Git configuration property core.autcrlf = true at either the global or repository level.

On GitHub I also found a page https://help.github.com/articles/dealing-with-line-endings/ providing some advice on how to "normalize" all line endings in a repo in one step.

Regards,
Kai

________________________________________
Von: cf-dev-bounces@xxxxxxxxxxx [cf-dev-bounces@xxxxxxxxxxx]&quot; im Auftrag von &quot;Kovatsch  Matthias [kovatsch@xxxxxxxxxxx]
Gesendet: Mittwoch, 5. August 2015 13:57
An: Californium (Cf) developer discussions
Betreff: [cf-dev] Line endings

Hi all

With more committers on board, the issue of different line endings popped up again. I also found a few files that were inconsistent.

Originally, the code started out with Windows line endings. I consider this the "safer" why because I never encountered an editor that cannot handle \r\n (but the other way round).

However, if the overall default for open source is \n, then we can change to this and avoid the confusion in commits and pull-requests. Please share your experience or knowledge on that, so we can put this to an educated vote.

Ciao
Matthias

_______________________________________________
cf-dev mailing list
cf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cf-dev

Back to the top