Spotting What Actually Changed in a Config File
By toolbelt maintainers ·
Updated
You edited one line and the pull request says 400. Reading a diff properly saves you from approving the wrong thing.
What is this tool?
A diff shows the minimum set of edits that turns one text into another. Everything unchanged appears as context; additions and removals are marked.
How it works
I compare line by line using a longest common subsequence, trimming the identical beginning and end first so that files which mostly agree stay fast. Removals come from the left text, additions from the right.
Example
server:
- port: 8080
+ port: 9090
host: localhostWhen to use it
Before committing a config change. Comparing a local file with what is deployed. Reviewing a colleague’s edit when you do not have their branch.
Optimization Tips
If every line shows as changed, check line endings or indentation first. That is almost always the cause, and the real change is hiding inside the noise. Reading the removed lines first tells you what the previous behaviour was, which is usually what you need to know.
Frequently Asked Questions
Does it ignore whitespace?
Why does a moved block show as removed and added?
How large can the inputs be?
Is my text uploaded?
Related tools
- Hash GeneratorGenerate MD5, SHA-1, SHA-256, SHA-512 and CRC-32 checksums from any text. Everything is computed with the browser crypto API, so nothing you paste is ever sent anywhere.
- Text Case ConverterConvert text between camelCase, PascalCase, snake_case, kebab-case, Title Case, slug and more. Handles existing identifiers by splitting on word boundaries first.
- QR Code GeneratorTurn any URL or text into a QR code and download it as an SVG. Choose the error-correction level for logos or rough printing, entirely in your browser.
- Markdown PreviewWrite Markdown and see it rendered live, then copy the generated HTML. Supports GitHub-flavoured tables, task lists, code fences and blockquotes.