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

Patch.create_from: Add support for context_lines and interhunk_lines #756

Merged
merged 1 commit into from
Dec 6, 2017
Merged

Patch.create_from: Add support for context_lines and interhunk_lines #756

merged 1 commit into from
Dec 6, 2017

Conversation

brandonio21
Copy link
Contributor

Adds support for specifying context_lines and interhunk_lines when calling Patch.create_from.

I've also added two tests to test the context lines functionality.

The behavior in this PR mimics the behavior in tree.c for adding these flags into the options.

@jdavid jdavid merged commit 28c3828 into libgit2:master Dec 6, 2017
@jdavid
Copy link
Member

jdavid commented Dec 6, 2017

This has introduced a couple of warnings in the tests (Equals vs Equal). Could you fix them?

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

2 participants