Git Diff & Unified Patch Stats Analyzer
Paste git diff or unified .patch output locally to summarize per-file additions, deletions, churn distribution bars, rename flags, and review hotspots like migrations or dependency locks.
Input & Options
Local JS Execution
Parsed Output & Diagnostics
Ready
Status
...
Generated Output
PR Churn & Review Size Benchmarks
| Changed Lines (+ / -) | Review Category | Guidance |
|---|---|---|
| <= 200 lines | Small / Ideal PR | Quick thorough review with low defect escape rate |
| 201 - 500 lines | Moderate PR | Verify migration rollback and test coverage |
| > 500 lines (excl. lockfiles) | Large PR | Split feature refactor from formatting or dependency bumps |
| New migration / auth files | High-Sensitivity File | Prioritize manual inspection before merge |
Parser Methodology & Privacy Guarantees
Scans `diff --git` file boundaries, hunk headers (`@@ ... @@`), mode markers (`new file`, `deleted file`, `rename`), and `+`/`-` line counts while filtering `+++`/`---` metadata lines.
- Attributes `+` and `-` modifications strictly inside active file diff hunks.
- Computes net LOC delta and ranks top files by total churn.
- Flags sensitive targets such as `.env*`, migrations, lockfiles, and Docker/auth changes.
Scope & limitations: Binary file diffs only show `Binary files ... differ` without line counts.
Frequently Asked Questions
Why inspect private repository diffs here?
Proprietary diffs and internal patches remain strictly in your browser RAM with zero server upload or analytics capture.
How do I exclude lockfile noise when reviewing PR sizes?
This analyzer automatically detects package-lock.json, poetry.lock, and yarn.lock churn and shows you the breakdown separately per file.
How can I export a patch from any Git branch?
Run git diff main...HEAD > feature.patch locally and load the file directly into the workbench.