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

diff files line-by-line instead of character-by-character #10344

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

riknoll
Copy link
Member

@riknoll riknoll commented Jan 17, 2025

this pulls out our usage of google's dmp library which was good at calculating diffs but took much too long diffing large xml files (which, in fairness, it never claimed to be good at).

now i'm using the diff code that @pelikhan wrote for the github support which i generalized a tiny bit and added code for converting the diffs into patches. the patch format i produce is a subset of the google's dmp format, but i've maintained backwards compatibility with the applying of patches so no old projects should need any upgrading. the reason my format is a little different is because the patches from dmp are two-way, but mine are only one-way.

@riknoll riknoll requested a review from a team January 17, 2025 00:08
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.

1 participant