-
Notifications
You must be signed in to change notification settings - Fork 199
Update development section of the doc #64
Comments
loic, are you sure that local will work? You need to have this line endings set when you clone the repo. So there is no local config at that point. I think only global will work in this case. |
First, I actually did not follow the steps for development, since I did not want to override my default global git settings. I think we should really remove these So what actually happened to me:
To fix the Development section of the
This sets locally these settings before fetching of the remote changes are done. With this command, all files are checked out with LF line endings only, and Git ensures that any potential CRLF line endings will be normalized to LF on checkin to the DB. Fine. But this is a bit unusual to pass these config settings before cloning or to the clone command itself. This is the old system of Git to handle line endings. We have this new system with the
Are we eventually ok with a No :) The problem with this configuration is the following. If any contributor working with a Windows Editor that uses CRLF line endings modifies Many situations to be handled, depending on the text editors, the OSes... What we want is to benefit from LF line endings in Linux workdirs, CRLF line endings in Windows workdirs AND --in any client situation-- LF line endings in our DB repository... And of course the test cases to always pass with uncommitted changes no matter what are your line endings settings... We can achieve that :) What we should do then imho :
What is your opinion, especially for point 1) ? Both solutions have pros and cons.. It's weird to set typescript files in |
thank you for the detailed explanation! I don't care what the solution is as long as there are only LFs in the project. By the way, our own project (sindbad.git) has the same problem. There is a long-standing crlf issue. Send a pull request and I'll merge it. |
The text was updated successfully, but these errors were encountered: