Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: parsing unified diff chunk headers#198

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

rushiiMachine
Copy link
Contributor

The regex matching chunk headers does not account for unified diffs generated with--show-function-line (with GNU diffutils for example)

Currently this library parses only the following chunk header:@@ -571,6 +571,12 @@
But this is also valid:@@ -571,6 +571,12 @@ .method public constructor <init>(Landro

This also created a very odd error far down the call stack of this method call whenold_ln andnew_ln are both equal to0 as a result of failing to parse the chunk headers.

// Process the lines in the last chunk
processLinesInPrevChunk(rawChunk,patch,old_ln,new_ln);

The regex matching chunk headers does not account for diffs generated with --show-function-line
@wumpzwumpz merged commit8397e20 intojava-diff-utils:masterFeb 5, 2025
1 check passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@rushiiMachine@wumpz

[8]ページ先頭

©2009-2025 Movatter.jp