Skip to content

Conversation

ExplodingCabbage
Copy link
Collaborator

@ExplodingCabbage ExplodingCabbage commented Jul 29, 2024

Fixes #531.

But also rips out the ability to pass newlineIsToken to createPatch et al, because my changes here broke the tests (that @oBusk had added in #345) for that feature and when I dug into it I realised - like I think @oBusk kinda implies in that PR description - that the whole feature is kinda broken, since it causes line ending changes to get falsely represented as deletions and insertions of entire blank lines in the patch.

(I suspect @Kiougar didn't consider the newlineIsToken option specifically back in 2016 when he wrote #153, and was probably thinking primarily about options like ignoreWhitespace which do make sense to pass to patch functions.)

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.

Bug w/ createPatch() when modifying file ending without new line

1 participant