Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve line endings when editing file in insert_license hook #84

Conversation

yiftachkarkason
Copy link
Contributor

Preserve line endings format when editing a file in insert_license hook.
This was problematic on Windows, when using --fuzzy-match-generates-todo - the line endings were always changed to CRLF.

@yiftachkarkason yiftachkarkason force-pushed the preserve-line-endings-in-insert-license branch 2 times, most recently from 7e5035b to 70105f1 Compare August 10, 2023 13:17
@yiftachkarkason yiftachkarkason force-pushed the preserve-line-endings-in-insert-license branch from 70105f1 to b9fc508 Compare August 10, 2023 13:22
@Lucas-C
Copy link
Owner

Lucas-C commented Aug 11, 2023

Thank you for your contribution @yiftachkarkason!

I'm planning to merge your PR as soon as this other one passes and lands on master,
to ensure everything still works as usual under Windows: #85

@yiftachkarkason
Copy link
Contributor Author

Thank you for your contribution @yiftachkarkason!

I'm planning to merge your PR as soon as this other one passes and lands on master, to ensure everything still works as usual under Windows: #85

Awesome! Let me know if you need help with #85 👍

@Lucas-C Lucas-C merged commit 27c596f into Lucas-C:master Aug 13, 2023
4 checks passed
@Lucas-C
Copy link
Owner

Lucas-C commented Aug 13, 2023

Thank you for your contribution!

This is now released: https://github.com/Lucas-C/pre-commit-hooks/releases/tag/v1.5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants