What is diffstat?
diffstat is made by Thomas E. Dickey. A command-line utility that parses unified or context diff output and generates a per-file summary of added and removed lines.
What diffstat does
A command-line utility that parses unified or context diff output and generates a per-file summary of added and removed lines.
- Parses diff and patch outputs from standard input or files
- Supports unified, context, and other diff formats
- Summarizes line additions and deletions per file
- Customizable output width and line-count formatting
- Sorting by file name, change count, or percentage
- Exclude or include files via pattern matching
- Overall summary of total insertions and deletions
- Integration with VCS tools (Git, Mercurial, Subversion, CVS)
Category: File Analysis Software. diffstat is open source and free to use.
What it overlaps with
These tools do similar work and turn up in the same large estates. Owning more than one is common, and it is often where the savings are.
Questions buyers ask
What does diffstat do?
A command-line utility that parses unified or context diff output and generates a per-file summary of added and removed lines.
How common is diffstat in large enterprises?
Samplify finds diffstat in about 2 in 10 of the large enterprise software estates it has analysed.
Is diffstat free?
diffstat is open source and free to use.
What can replace diffstat?
Other tools in the same category include 7-Zip, Beyond Compare, Pandoc, TreeSize.
Do we already own something that does what diffstat does?
Often, yes. Large estates commonly hold several tools that overlap. Samplify compares every tool you own at feature level, across every category, and decides which one stays.
Paying twice for the same job?
Most large estates own several tools that do the same thing, often without anyone knowing. Samplify compares every tool you own at feature level and decides which one stays, with the evidence attached.
Where this comes from
Samplify's software catalogue and the large enterprise estates it has analysed, as at 2 Dec 2026. Features and use cases are Samplify's own reading of the product. Check anything important with Thomas E. Dickey.