![]() If such a new Check was developed it would have to have some sort of mode like "this project is part of a repo using tocrlf, and so if running on Windows OS then skip this check" You would have to skip all who use autocrlf. Maybe repo has legacy code and was developed and solely used by windows. ![]() Nothing prevents Linux users from turning option on. Repo using tocrlf, and so if running on Windows OS then skip this check gitattributes which can force different line endings for specific files. You would also need to take into account. Most businesses may not use Windows on production build machines, but they still need to be able to test them locally.Ībandoning windows from any project will diminish your user base, which is usually a bad idea. Perhaps using tocrlf and having Windows build machines is just a bad idea?īusinesses and private users are the ones who really stick to using Windows. ![]() To sum it up: A check that verifies that only text/code files with LF line endings are committed makes perfectly sense to me as ensures consistency of the code files and thus helps avoiding bugs that are really hard to track down. Unfortunately, the jgit implementation that eclipse uses simply ignores the. You can also specify line endings per file type and git can also try to automatically detect and performs EOL conversion. If your code assumes LF line endings, a CSV file might become unreadable Actually, you can configure line endings very nicely using the. Some of them might have turned it off, leading to Windows clients pushing CRLF line endings, which is not supposed to happen according to git standards. Clients can decide how files are converted using the tocrlf feature. Let's assume for a second that git is used. Inconsistent line endings can certainly cause problems, in particular for resources files (config files, csv files, etc). I completely agree with - such a check could be very valuable imho.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |