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

Handle ambiguous diff header, '--- ' can also be present in a minus hunk #1787

Merged
merged 1 commit into from
Aug 15, 2024

Commits on Aug 4, 2024

  1. Handle ambiguous diff header, '--- ' can also be present in a minus hunk

    `diff -u file1 file2` output starts with '--- file1', a '-- 12' line
    being removed results in '--- 12', which was interpreted as the start of
    a new diff. Now the number of removed lines announced in the header as e.g.
    '@@ -1,4 +1,3 @@' is taken into account for this specific diff input.
    th1000s committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    370ac26 View commit details
    Browse the repository at this point in the history