-
Notifications
You must be signed in to change notification settings - Fork 501
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
Allow access to structured object representation of patch data #62
Conversation
var oldRangeStart = 0, newRangeStart = 0, curRange = [], | ||
oldLine = 1, newLine = 1; | ||
oldLine = 1, newLine = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This formatting was intentional. Style is to chain vars with ,
and to double indent when newlines are used to line up the var names.
This generally looks good outside of a few style concerns and a few cases where I'm not sure what the exact behavior is. Once we get those fixed up, I'm glad to merge. |
Whitespace adjustments done. |
Documentation added. |
Allow access to structured object representation of patch data
Thanks! |
Released in 2.0.0 |
This PR does two things: 1) gives control over the context size of patches, and 2) adds a method that allows retrieving a patch in the shape of an object with a list of hunks. E.g.:
If it looks acceptable, I'll patch documentation et cetera.