diff --git a/pages/common/diffstat.md b/pages/common/diffstat.md new file mode 100644 index 000000000..65ee4db4b --- /dev/null +++ b/pages/common/diffstat.md @@ -0,0 +1,11 @@ +# diffstat + +> Create a histogram from the output of the `diff` command. + +- Display changes in a histogram: + +`diff {{file1}} {{file2}} | diffstat` + +- Display inserted, deleted and modified changes as a table: + +`diff {{file1}} {{file2}} | diffstat -t`