Skip to content

Preserve line endings when editing file in insert_license hook - #84

Merged
Lucas-C merged 1 commit into
Lucas-C:masterfrom
yiftachkarkason:preserve-line-endings-in-insert-license
Aug 13, 2023
Merged

Lucas-C merged 1 commit into
Lucas-C:masterfrom
yiftachkarkason:preserve-line-endings-in-insert-license

Conversation

@yiftachkarkason

Copy link
Copy Markdown
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

Lucas-C commented Aug 11, 2023

Copy link
Copy Markdown
Owner

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
Copy Markdown
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
@Lucas-C

Lucas-C commented Aug 13, 2023 •

Copy link
Copy Markdown
Owner

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