We are using git (github) to collaborate between Windows, Mac, and Linux machines on the same project.
We are having issues with the editor saving files automatically and having most of the project show as dirty, converting CR to CRLF and vice versa. Meaning that for example: Godot Linux opens a file last edited on Windows, saves it by changing all the line endings, then git shows that and other files as modified.
I know this is a git question as much as a Godot question. But since the editor forces native line endings rather than having it be configurable, I have not figured out how to mitigate it. I have tried using a .gitattributes
and *.tscn text
but have not been successful:
https://help.github.com/en/articles/dealing-with-line-endings
There is an existing feature request issue to make this setting configurable, but has received little attention. I looked at it but my C++ is not nearly strong enough to make a contribution of this magnitude:
https://github.com/godotengine/godot/issues/27057