Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 3
    For those of us on a Mac which installed Homebrew. Just install it via brew install diffstat. Commented Apr 15, 2015 at 11:54
  • 4
    To get the name of the file printed, you need the diff to be unified diff -u foo1/bar.cpp foo2/bar.cpp | diffstat will yell bar.cpp | 6 ++++++. If not unified, the file name will be unknown. Commented Sep 20, 2019 at 13:54