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

For readablity, diff on a word-by-word rather than character-by-character basis #799

Merged
merged 9 commits into from
Dec 23, 2022

Conversation

mccalluc
Copy link
Contributor

@mccalluc mccalluc commented Dec 23, 2022

Currently the diff goes character by character. This means that if the string has completely changed, it's still trying to find a longest common substring, but the result may be unreadable. This instead does the diff on a word-by-word basis.

@mccalluc mccalluc changed the title Word rather than character diff For readablity, diff on a word-by-word rather than character-by-character basis Dec 23, 2022
@mccalluc mccalluc marked this pull request as ready for review December 23, 2022 18:51
@pulbot pulbot temporarily deployed to staging December 23, 2022 22:03 Inactive
@jrgriffiniii jrgriffiniii self-requested a review December 23, 2022 22:04
@jrgriffiniii jrgriffiniii merged commit 9783444 into main Dec 23, 2022
@jrgriffiniii jrgriffiniii deleted the mccalluc-word-diff branch December 23, 2022 22:07
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.

None yet

3 participants