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 parser bugfixes #577

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Diff parser bugfixes #577

merged 2 commits into from
Nov 5, 2024

Conversation

alilleybrinker
Copy link
Collaborator

@alilleybrinker alilleybrinker commented Nov 5, 2024

Fixes #574, #570

@alilleybrinker alilleybrinker added the type: bug Something isn't working label Nov 5, 2024
@alilleybrinker alilleybrinker self-assigned this Nov 5, 2024
@alilleybrinker
Copy link
Collaborator Author

Oh let me collapse Julian's test case commits down to one.

This commit adds new test cases to the diff parser to catch some
bugs we've identified.

Signed-of-by: Julian Lanson <[email protected]>
This fixes two parsing bugs in the diff parser. First, that sometimes
stat blocks don't give numbers for lines added or removed, and instead
just use the `-` character, which we now support. Second, that a patch
can have a header with no chunks, which we also now support.

Signed-off-by: Andrew Lilley Brinker <[email protected]>
Copy link
Collaborator

@j-lanson j-lanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Andrew!

@j-lanson j-lanson merged commit ae19cce into main Nov 5, 2024
9 checks passed
@alilleybrinker alilleybrinker deleted the 570-bug-fix branch November 8, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

git parser can't handle patchless diff git diff parser can't handle hyphens in stats section
2 participants