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

fix: Make Git parser handle meta lines in chunk #567

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Conversation

alilleybrinker
Copy link
Collaborator

Fixes #560

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

Looks like there's a merge conflict. I'll rebase

@alilleybrinker
Copy link
Collaborator Author

Just realized this includes some nonsense changes to the Cargo.toml that appear to be holdovers from the rebase. I'll remove them

mchernicoff
mchernicoff previously approved these changes Nov 4, 2024
The previous parser for Git chunks would fail to properly break
up chunks with any "meta lines" (my term for them) starting with
a `\` instead of `+` or `-`. This update to the parser means the
parser will now correctly handle those lines, but won't include
them in the patch string it constructs, as they're meta-commentary
on the diff itself and not part of the edits.

Signed-off-by: Andrew Lilley Brinker <[email protected]>
Co-authored-by: Julian Lanson <[email protected]>
@alilleybrinker
Copy link
Collaborator Author

@mchernicoff can I get a re-review? Just updated to no longer include the mistaken Cargo.toml changes.

@alilleybrinker alilleybrinker merged commit ecf0e21 into main Nov 4, 2024
9 checks passed
@alilleybrinker alilleybrinker deleted the 560-bug-fix branch November 5, 2024 06:29
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
Status: Done
Development

Successfully merging this pull request may close these issues.

Git nom parser wrongly assumes No newline lines can only be at end of diff chunk
2 participants