4 ms·
Yes it does, but usually \n is committed in git, but on Windows it checks out as \r\n. So you are right that it technically does not depend on the system, but i
by exyi 5y ago
Yes it does, but usually \n is committed in git, but on Windows it checks out as \r\n. So you are right that it technically does not depend on the system, but in practice there is a difference.
- gpderetta 5y agoThat's a very good point. Is it best practice to configure git to change line endings on Windows? I understand that these days Windows editors can handle unix line terminators corerctly.
- GoblinSlayer 5y agoAt least in visual studio this seems to be default and there's no way to change it.
- gpderetta 5y agoApparently it is possible, it is just very well hidden: https://stackoverflow.com/questions/3802406/configure-visual-studio-to-use-unix-line-endings https://stackoverflow.com/questions/3802406/configure-visual...
- GoblinSlayer 5y agoI mean git setting, not the text editor setting. Git checks out all files in CRLF format irrespective of your text editor.