github Romelium/mpatch v1.4.1

latest releases: v1.6.4, v1.6.3, v1.6.2...
3 months ago

Fixed

  • Parser: Fixed a bug where empty lines between file diffs (common in LLM outputs) were incorrectly absorbed as trailing context lines, breaking file creation and deletion detection.
  • API: Made Patch::is_creation() and Patch::is_deletion() more robust by checking hunk header line numbers (e.g., @@ -0,0 ...).
  • Fuzzy Matching: Fixed a bug in the search optimization heuristic where indentation differences between the patch and the target file would cause the fuzzy search to fail or look in the wrong location. The anchor line search now correctly ignores leading whitespace.

🆚 Compare changes

Don't miss a new mpatch release

NewReleases is sending notifications on new releases.