-
Notifications
You must be signed in to change notification settings - Fork 5
Create a diff implementation #12
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1194dd0 to
58cd8bd
Compare
58cd8bd to
9d0d172
Compare
9d0d172 to
f8153c9
Compare
|
This is a fine piece of code, but we will need some unit tests and other test cases to be able to maintain the code. There may as well be some random testing: generate filea, generate fileb, run (our) diff filea fileb, test (patch filea (diff file fileb)) equals fileb |
|
Done. This PR should be ready to review |
f20ec1a to
9f08f50
Compare
9f08f50 to
d16028a
Compare
|
CI should be good now |
|
Thanks! |
hannesm
added a commit
to hannesm/opam-repository
that referenced
this pull request
Apr 3, 2024
CHANGES: * Add support for git format-patch headers (hannesm/patch#7 @kit-ty-kate) * Pretty-printer: fix no_newline support (hannesm/patch#11 @kit-ty-kate) * Various fixes to the diff parser ('---' mid diff, hunks, no newline at end of file) (hannesm/patch#10 @kit-ty-kate) * Add Patch.pp_list (hannesm/patch#13 @kit-ty-kate) * Merge Edit and Rename operations (hannesm/patch#14 @kit-ty-kate) * Add a diff implementation (hannesm/patch#12 @kit-ty-kate) * Rename to_diffs to parse (hannesm/patch#16 @kit-ty-kate) * Provide API docs, tweak documentation (@hannesm)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Works as-is but isn't optimal.
Requires #14 to be merged first