How to use Unified Patch Inspector
- Paste an ordinary unified patch with its file headers and hunks.
- Inspect the named files, added lines, removed lines and any format errors.
- To preview a change, supply the matching source and select the intended file when required.
- Review conflicts or copy the preview; the page does not write files or run the patch.
Example: Unified Patch Inspector
Preview a three-line change with exact context.
Supported inputs and limits
Where your input is processed
This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.
A hunk describes both versions
Hunk headers declare old and new ranges. Context lines occur in both versions, minus lines belong to the old source and plus lines belong to the new source. Counts must agree with those lines before an exact-context preview can be trusted.
Questions about Unified Patch Inspector
Does this run git apply or patch?
No. The page reads the supplied text and compares hunk context locally. It does not launch a command or change your project files.
Why does a valid-looking hunk conflict?
The supplied source may differ from the patch's expected lines or final line ending. Exact-context preview deliberately avoids guessing a new position for unmatched text.
Can it inspect binary or combined diffs?
Those forms are outside the stated ordinary unified-patch support. A refusal means this preview cannot interpret the patch; it is not a verdict on whether another patch engine could use it.
What should I check before using a preview?
Confirm the intended path, original source and every changed line. A matching hunk does not establish that the code change is correct or safe to execute.