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

Can we add an API to reconstruct the header programmatically? #12

Closed
aruprakshit opened this issue Jul 14, 2024 · 1 comment
Closed

Comments

@aruprakshit
Copy link

When we are parsing a Hunk header like this @@ -6,9 +6,11 @@ def add(string), we are only capturing previous_lino_start for e.g. -6, new_lino_start for example +6. So we are missing important information like def add(string), and total line changes like 9, 11 etc. I think the lib should add API to reconstruct the header in case someone want it.

@Edouard-chin
Copy link
Member

That make sense. I merged #13 which should address your use case.

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

No branches or pull requests

2 participants