PowerShell / Polaris

A cross-platform, minimalist web framework for PowerShell
https://powershell.github.io/Polaris/
MIT License
512 stars 114 forks source link

Maintaining line endings across OS and Editors sucks the joy out of development #148

Closed Tiberriver256 closed 6 years ago

Tiberriver256 commented 6 years ago

We've got a couple of PRs out here to address this but wanted to throw up a quick issue to briefly describe what we're trying to achieve and provide a link between the two PRs.

Depending on your operating system and editor Git or your editor might choose to end all of your lines with either a carriage return and a line feed (CRLF) or just a line feed (LF). Which no one really cares about and it's hard to spot the difference until you start a pull request. If the line endings on a file have been changed from CRLF to LF or vice versa the resulting git diff will show that you have modified every line in the file instead of just highlighting the period you maybe added to the end of a Write-Host statement.

We are wanting to add a few things to our shared development environment to hopefully make us all forget that this was ever even a struggle.

Thanks @jeremymcgee73 for getting this started! 😎😎😎

TylerLeonhardt commented 6 years ago

lol at the title. Thanks for opening this.