Description
Parses patch files and unified diffs into Python data structures. It helps tools inspect changed files, added and removed lines, and review metadata without writing fragile text parsing code.
Developers use it in code-review, automation, and quality tools. Patch analysis can influence what gets changed or approved, so handle malformed diffs and file paths defensively.